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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
byr10112
Employee
Employee

Formatting the number type (Percentage vs Whole Number) based on dynamic tables with buttons

Hi, I have a matrix where the rows are the userID's and the columns are the months of the year. I created a Buttons table with the button names and a measure in my main table that would change the value I display in the matrix depending on the button. One value I would like to display is a whole number whereas the other one is a percentage. Below is the measure I'm using:

Button Value =

SWITCH(Buttons[Selected Button], "Hours Logged", SUM('UserUtilization'[Hours]), "Utilization", 'User Utilization'[Utilization %])

 

Is there a way for me to dynamically adjust the number format based on the selected button? 

 

1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.