Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello, I am trying to use ranges that I've created from a nother calculated field. I am taking a distinct count of certain categories and then I've created a range out of this distinct count:
Hi, @thrillhouse
Could you please consider sharing more details about it and posting expected result so it is clear on what needs to be implemented? And It would be great if there is a sample file without any sesentive information here.
It makes it easier to give you a solution.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks, Theo. I tried this as well, however, this also only display "0-2" as the only values even though that is not the case. This column doesn't display the correct values when in a table either. The IF statement I pasted above shows the correct values in a table, but doesn't seem to work as a legend.
@thrillhouse then it's related to the measure that you referenced. Use the following measure and it will fix the issue:
Measure =
VAR _1 = COUNTROWS ( 'Table' )
RETURN
SWITCH (
TRUE () ,
_1 < 3 , "0-2" ,
_1 < 5 , "2-4" ,
"5+" )
Hope this helps.
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
Hi @thrillhouse
Can you create a calculated column as follows:
Column =
SWITCH (
TRUE () ,
[Main Categories Count] < 3 , "0-2" ,
[Main Categories Count] < 5 , "2-4" ,
"5+" )
Hope this helps.
Theo
If I have posted a response that resolves your question, please accept it as a solution to formally close the post.
Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!
Want to connect?www.linkedin.com/in/theoconias
User | Count |
---|---|
88 | |
84 | |
66 | |
62 | |
57 |
User | Count |
---|---|
138 | |
112 | |
94 | |
82 | |
71 |