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.
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?
@byr10112 , You need to use calculation groups for that
calculation groups
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/
or
https://www.youtube.com/watch?v=-REAQDqdz0A
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |