Forum Discussion
Need to compare multiple rows in the same table
- Anonymous2 years ago
Hi alepagg ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a measure.
Flag = var _table=CALCULATETABLE(VALUES('Table'[CUSTOMER]),'Table'[VALUE]<=0) RETURN IF( not MAX('Table'[CUSTOMER]) in _table,1,0)(3) Place [Flag=1] on the visual object screening and then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Neeko,
Thanks a lot for your help! Your solution does work!
However, my real scenario is quite complex and it's hard to replicate your proposal to my dashboard. Maybe you know how to use the Flag to calculate a measure
- the number of Customers active in multiple Brands
- the total value generated by the above Customers
Thank you,
Alessandro
Hi alepagg ,
You can use the COUNTROWS() function to count the number of Customers active in multiple Brands.
You can use the SUMX() function to calculate the total value generated by the above Customers.
For more details, refer: COUNTROWS function (DAX) - DAX | Microsoft Learn
SUMX function (DAX) - DAX | Microsoft Learn
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.