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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MadBern85
Helper I
Helper I

Y-axis format in dynamic column/line chart

Hi

 

I have a dynamic column/line chart where end users can use slicers to view and analyze different results.
The columns are controlled by one slicer that shows, for instance, company total revenue and the line is controlled by another slicer which shows other results, which can be in either numbers or percentages. But all percentages in y-axis and datalables are shown as numbers.

 

Here is the measure for the line values:

 

Parametre1 = SWITCH(TRUE(),
SELECTEDVALUE(LineFilter[Parametre1]) = "Revenue pr. hour", [Agent RPH],
SELECTEDVALUE(LineFilter[Parametre1]) = "Total absence", [Total absence %],
SELECTEDVALUE(LineFilter[Parametre1]) = "Paid absence", [Paid absence %],
SELECTEDVALUE(LineFilter[Parametre1]) = "Profit %", [Profit %],
SELECTEDVALUE(LineFilter[Parametre1]) = "Utilization", [Utilization],
SELECTEDVALUE(LineFilter[Parametre1]) = "Occupancy", [Occupancy],
SELECTEDVALUE(LineFilter[Parametre1]) = "No of sales", [No of sales],
SELECTEDVALUE(LineFilter[Parametre1]) = "Sale Hitrate", [Sale Hitrate])

 

I've tried using the FORMAT-function in this measure, but that has only resulted in the values going missing from the chart.

 

Anyone have any tips for how I can get the chart to show the correct format of the data or is this not possible in a dynamic chart like this?

MadBern85_0-1631272322614.png


Regards
MadBern

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MadBern85 , You can do that in the calculation group

calculation groups

https://www.youtube.com/watch?v=vlnx7QUVYME
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@MadBern85 , You can do that in the calculation group

calculation groups

https://www.youtube.com/watch?v=vlnx7QUVYME
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors