Forum Discussion
Dax Measure for Range
- 7 years ago
Hi Anonymous ,
You can create Range table via "Enter Data" under Home ribbon.
Then create column Range Judge to judge range, or you may create column Range Judge1 which won't need the Range table.
Range Judge = CALCULATE(VALUES(Range[Access Count range]),FILTER(Range,Table1[Access Count]>=Range[Min]&&Table1[Access Count]<=Range[Max]))
Range Judge1 = SWITCH(TRUE(),Table1[Access Count]<=0,"Count of Login <= 0",Table1[Access Count]>0&&Table1[Access Count]<=5,"Count of Login > 0 & <= 5",Table1[Access Count]>5&&Table1[Access Count]<=10,"Count of Login >5 & <= 10",Table1[Access Count]>10,"Count of Login >10")
Here is my test pbix: https://community.powerbi.com/t5/Desktop/Dax-Measure-for-Range/m-p/689458#M332430
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
please prepare a pbix file that contains sample data and reflects your data model, upload the to onedrive or dropbox and share the link.
Regards,
Tom
Hi TomMartens
Can you send me your email instead?
My source file and access are confidential and restricted.
I will revise the source file and send to you.
- TomMartens7 years agoSuper UserHey,
confidential data is exactly the reason why I'm asking for sample data 😉
Regards,
Tom- Anonymous7 years agoNot applicable
Hi TomMartens
Here is the sample data, can you import into your PowerBI and share me the Dax ,
Filter by Count of Login >10
Count of Login < 0
Count of Login >5 & < 10
Count of Login > 0 & < 5
User Time of Login A 1/1/2015 A 2/1/2015 B 3/1/2015 B 4/1/2015 B 5/1/2015 C 6/1/2015 D 7/1/2015 D 8/1/2015 D 9/1/2015 D 10/1/2015 D 11/1/2015 A 12/1/2015 A 13/1/2015 A 14/1/2015 B 15/1/2015 C 16/1/2015 C 17/1/2015 C 18/1/2015 C 19/1/2015 D 20/1/2015 D 21/1/2015 - v-xicai7 years agoCommunity Support
Hi Anonymous ,
You can create Range table via "Enter Data" under Home ribbon.
Then create column Range Judge to judge range, or you may create column Range Judge1 which won't need the Range table.
Range Judge = CALCULATE(VALUES(Range[Access Count range]),FILTER(Range,Table1[Access Count]>=Range[Min]&&Table1[Access Count]<=Range[Max]))
Range Judge1 = SWITCH(TRUE(),Table1[Access Count]<=0,"Count of Login <= 0",Table1[Access Count]>0&&Table1[Access Count]<=5,"Count of Login > 0 & <= 5",Table1[Access Count]>5&&Table1[Access Count]<=10,"Count of Login >5 & <= 10",Table1[Access Count]>10,"Count of Login >10")
Here is my test pbix: https://community.powerbi.com/t5/Desktop/Dax-Measure-for-Range/m-p/689458#M332430
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.