Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Tihannah
Resolver II
Resolver II

Help with Formatting

Not sure if this is possible, but thought I would ask.

 

I have a dynamic measure based on button selection that says

If Actual is selected, then Actual

If vs Budget is selected, then Budget Variance

If vs Prior Year is selected, then Prior Year Variance.

 

I would like to format Budget and Prior Year variances with the Red and Green, but not Actuals. Is this possible since they are all built into the same measure?

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @Tihannah 

 

You can do this using the HTML Content custom visual.

 

Here's an explanation how to use it

 

Solved: Possible to change font color of ONLY a dynamic va... - Microsoft Fabric Community

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


I'm not sure how this would work in my problem. There is no text in what I am displaying. I have a matrix table showing a trailing twelve months of data. When I select one of the buttons on the right, the data changes to display that. So I want to display the variances as positive or negavtive, but with no impact to Actual even though they are all built into the same measure with the following dax: 

MthlyTrend Selection = IF(Buttons[Button_Slicer]="Actual",[Act_Total],IF(Buttons[Button_Slicer]="vs Budget",[Budget Var],[ACT_PY_Var]))
 
As you can see in September, Actual may sometimes be a negative amount, but I do not want that to display in RED. Only the variances to Actual.
Table Examples below:

Sample1.PNGSample2.PNG

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.