Forum Discussion
Help needed regarding Nested Filter in Power BI
- Anonymous1 year ago
Hi, AbhishekAejae
Thanks for rajendraongole1 reply. You can try the following measure to achieve your need.Counts = VAR __countsCountry = CALCULATE ( COUNT ( 'Table'[Country] ), ALLEXCEPT ( 'Table', 'Table'[Country] ) ) RETURN __countsCountry Flag = IF ( [Counts] > 3, 1 ) Rank = VAR __rank = RANKX ( FILTER ( ALLSELECTED ( 'Table' ), [Flag] = 1 ), [Counts],, ASC, DENSE ) RETURN __rank
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
Hi, AbhishekAejae
Thanks for rajendraongole1 reply. You can try the following measure to achieve your need.
Counts =
VAR __countsCountry =
CALCULATE (
COUNT ( 'Table'[Country] ),
ALLEXCEPT ( 'Table', 'Table'[Country] )
)
RETURN
__countsCountry
Flag =
IF ( [Counts] > 3, 1 )
Rank =
VAR __rank =
RANKX ( FILTER ( ALLSELECTED ( 'Table' ), [Flag] = 1 ), [Counts],, ASC, DENSE )
RETURN
__rank
Best Regards,
Yang
Community Support Team
If 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
Hi Anonymous this is working but the slicers are not affecting the data. could you please help me with it? I have a device installed date hierarchy as a slicer and this date is not affecting it even though this date is in the same table