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'm creating a Column Chart and a Matrix visuals with a column slicer switching between Numbers and Percentage. Both of the number and percentage are shown perfectly in the matrix visual, however, the percentage data isn't shown in the chart at all. Any idea how to display the formatted percentage data in the column chart? Thank you!!
Here is what I created for the measure "selectedValue" which is for the value field in both visuals:
selectedValue =
IF (
ISFILTERED ('Type'[Type]) && HASONEVALUE ('Type'[Type]),
if(LASTNONBLANK ('Type'[Type], 0 )="Number",
SUM(MySchool[Number]),
if(LASTNONBLANK ('Type'[Type], 0 )="Percentage",
FORMAT(SUM(MySchool[Percentage]),"0%")
)
),
BLANK()
)
Hi @RomyL1,
It seems that you have two tables, to get the solution, I need your data sample.
If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)
Best regards,
Cherry
Hi Cherry, Thanks a lot for looking into this questoin. Currently I got an alternative solution for this question which is to create another measure and display different column/measure in the chart and matrix. But I still want to know if there is a way to display the two different data type (whole number and formatted percentage) in one chart by using the IF function. Here is the .pbix link from my one drive.
Thank you!
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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |