Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Dear community,
I have a simple table loaded in power BI which looks like that (screenshot 1)
The metric column and the quarter columns are coming from a single table named "Quarterly Results" - Quarterly Results[metric] and Quarterly Results[Quarter].
The measure you are seeing is extremely simple:
I've tried multiple solutions and none of them worked.
I also created 2 new measures:
But what it does its returning 1 to all values for BF Surveyable Events like here:
And respectively, it colors my whole line in red. While I'd expect it to color only FY25Q3.
Can anyone help me with that please?
All due respect,
Atanas
Solved! Go to Solution.
Hi @Atanas_Atanasov ,
You can use Visual Calculation(Select Your Visual and click on New Visual Calculation) to achieve the result shown below:
PFA PBIX.
Please give Kudos or mark it as solution once confirmed.
Thanks and Regards,
Praful
@divyed and @Praful_Potphode - also I was able to do it with DAX today... there was sorting happening in the table. The metrics column was sorted by another column, so the order appears the same every time. So, basically:
CALCULATE(
[Volumes],
REMOVEFILTERS( Quarterly Volumes[Order] ),
Quartertly Volumes[Metric] = "BF Surveyable Events"
) works like a charm now... I know it is a trivial problem, but really was not aware of it.
Biggest takeaway is if your DAX is not working as it should be always check that... mainly in calendar tables.
Thank you both,
Atanas
Hello @Atanas_Atanasov ,
Visual calculation is definately an option here but you can also modify your dax to do the same. I can see issue in your dax which has potential conatext issue. I would suggest to use selectedvalue function to get current values and that will work. You can share sample raw data if you want full dax.
I hope this helps.
Cheers.
Did I answer your query, Mark this as solution if this helps, kudos are appreciated.
Cheers
Neeraj Kumar
@divyed - thank you for the suggestion! As @Praful_Potphode suggested I used visual calculation. I also resolved it with DAX and disconnected table. I think something might not be right with the report in general as I inherited it from another developer. Thank you one more time and wish you all the best,
Atanas
Hi @Atanas_Atanasov ,
You can use Visual Calculation(Select Your Visual and click on New Visual Calculation) to achieve the result shown below:
PFA PBIX.
Please give Kudos or mark it as solution once confirmed.
Thanks and Regards,
Praful
@Praful_Potphode - Thank you so much! That resolved my issue. I have also accomplished the coloring with disconnected table where i just put the values of the metric column. Then dragged it into the matrix and applied the same code:
if( metric name = "BF Surveyable Events" && [BF Surveyable Events] > 7 && [BF Surveys] = 0, 1, 0 )
But this works only with disconnected table. However, your solution is simpler and more elegant. Thank you one more time.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |