Hi All,
I have the following 2 measures:
Customer Sales:=CALCULATE(SUMx('hourly',hourly[Total sales]),FILTER('hourly',hourly[Customer Code]=275))
Supplier Sales:=CALCULATE(SUMx('hourly',hourly[Total sales]),FILTER('hourly',hourly[Supplier Code]=275))
which work just fine.
What I'm trying to achieve is have the customer code be selected dynamically based on a slicer. The reason I'm not just using a slicer based on customer/supplier is because I would like to see data for a certain company as both a customer AND a supplier in the same table. A slicer for a customer would filter our instances where that company is a supplier and vice versa.
Any help would be much appreciated.
Thanks,
Phillip
I have the following 2 measures:
Customer Sales:=CALCULATE(SUMx('hourly',hourly[Total sales]),FILTER('hourly',hourly[Customer Code]=275))
Supplier Sales:=CALCULATE(SUMx('hourly',hourly[Total sales]),FILTER('hourly',hourly[Supplier Code]=275))
which work just fine.
What I'm trying to achieve is have the customer code be selected dynamically based on a slicer. The reason I'm not just using a slicer based on customer/supplier is because I would like to see data for a certain company as both a customer AND a supplier in the same table. A slicer for a customer would filter our instances where that company is a supplier and vice versa.
Any help would be much appreciated.
Thanks,
Phillip