Forum Discussion
Counting Values less that a certain number. can I also include the slicers in the DAX
I have a visual whenre I add Number of People against Areas. If the total is less than wo I dont display it.
I have some DAX that counts the less than or equal to 10s
DebbieE , Hope [Total People] is just a sum measure not using all or allselected. If all and all selected are not used then if the measure used anything other than area, then it will give data that will consider that row context too
based on what I got
so your total measure can be
= calculate(Count(Table[People]), filter(allselected(Dim Person), 'Dim Person'[Area] = Max('Dim Person'[Area]) ) )
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
1 Reply
- amitchandak
Super User
DebbieE , Hope [Total People] is just a sum measure not using all or allselected. If all and all selected are not used then if the measure used anything other than area, then it will give data that will consider that row context too
based on what I got
so your total measure can be
= calculate(Count(Table[People]), filter(allselected(Dim Person), 'Dim Person'[Area] = Max('Dim Person'[Area]) ) )
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.