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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
hstgeorge
Helper III
Helper III

Bar Graph that can Toggle between Absolute Variance and % Variance from Prior Year

I have built a dynamic slicer to toggle between Absolute Variance and % Variance from PY.

 

I have also built a toggle for WTD, MTD, QTD, and YTD.  

 

I have a separate measure for each so, I have ABS Var WTD, % Variance WTD, ABS VAR MTD, % Variance MTD, ETC.

 

I then used and If(and) statement to tell it what measure to use using SelectedValue combinations.

 

My problem is that the number is only capable of showing in one format.  I am not sure how to get it to show in % for Variance and decimal number for ABS VAriance.  You can't using the FORMAT command because it converts the number to text and then you can't place it on a bar chart in the Values area.  

 

Is there any way to do this or an easier way that I am not thinking about.  Thank you!!!

1 REPLY 1
amitchandak
Super User
Super User

@hstgeorge , I doubt there is fix as of now for dynamic data type and data format.

 

Refer to the idea

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/32728060-dynamically-set-formatti...

Vote for similar idea's

 

I think you already have a solution for slicer

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

Week:https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

other : https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-1-Time-Intell...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.