Forum Discussion
Count value based on measure
- Anonymous2 years ago
Hi, Guenfood77
Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.
Measure:
Count of Product = VAR _A = CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Product] = "A", ALL ( 'Table' ) ) VAR _nonA = CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Id] ) ) RETURN IF ( SELECTEDVALUE ( 'Table'[Product] ) = "A", _A, _nonA )If this does not work, could you please share some sample data without sensitive information and expected output(You can present the desired effect in a table, as well as a detailed description of the logic to achieve this effect).
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Thanks for your help. It works nice !