Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
I have the following visual which uses filter It is set less than 4
Solved! Go to Solution.
I solved the issue by adding both Cause and LOE to my X-Axis.
Hi @bdehning ,
Regarding your question, I think there may be a problem with the ranking, I created the measure and calculated columns and they both show 1.
You can try modifying it in this format
If I understand you wrong, can you share your .pbix file without sensitive data?
Hard to share file, which part did you modify with your Rank=? Was it the Top 3 By Frequency or the Sort Measure?
Hi @bdehning ,
I think we should change it here.
Assuming that the column 'Cause Grouping' has the values 'No Data','<1yr','yr', and you have cleared the filtering capability of the field using the ALL function, the 'Ref values should all be the same, for sorting all are 1
I was trying this earlier and trying to figure out What is Sheet1 and Sheet1[Type] and then Col2. I Assume Sheet1 is Injury Cause and Type is Cause Grouping. Not sure what Col2 is for me? Its Either Count of Total Gross Incurred or LossRun[LOE 2023]?
Sorry for the confusion. These are my hypothetical data, 'Sheet1' is 'InjuryCause', 'Type' is 'Cause Grouping', and 'col2' is the value of 'Ref'. Can you share some simple data?
Hi @bdehning ,
This function requires a row-context computing environment .Please attempts to create a calculated column, not a measure.
I tried to use 'InjuryCause'[Cause Grouping] after EARLIER and it stays red. Is not 'Sheet1'[Type] not the same on both sides of the =?
Hi @bdehning ,
I am very sorry for taking you in the wrong direction, let's ignore the ranking issue for a moment, the reason for the blank columns is probably due to the use of the legend.
In the table visual object, only the top three figures are shown, but in the clustered bar chart, blank columns are shown, which should be due to the use of a legend.
Please follow these steps:
Use the following DAX expression to create a measure
Measure 2 =
VAR _a = SELECTEDVALUE('Injury Cause'[Cause])
RETURN SWITCH(TRUE(),
_a = "STF","Red",
_a = "Strain","Blue",
_a = "Struckby","Green",
_a = "Caught between","Yellow")
Setting the color
I realized the Legend was the issue as my table of date is fine. Unfortunately there are 250 Injury Causes possible, so setting the 4 with color in your measure will not solve this .
I solved the issue by adding both Cause and LOE to my X-Axis.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
100 | |
65 | |
44 | |
36 | |
36 |