March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
i am converting a decimal value to percentage. please see the dax function i have used.
Solved! Go to Solution.
Hi @kannanAhammed ,
Try this measure and then click on the measure and then format it from the ribbon to % .
TimelyResponseMaterialInspections =
VAR V =
CALCULATE (
MAX ( 'MER'[This month] ),
'MER'[Title] == "Material Inspections"
)
RETURN
IF (
ISBLANK ( V ),
0,
V,
)
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Generally, you need to selected the measure from the right panel and then just change the format and decimal places on the top ribbon.
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @kannanAhammed ,
Try this measure and then click on the measure and then format it from the ribbon to % .
TimelyResponseMaterialInspections =
VAR V =
CALCULATE (
MAX ( 'MER'[This month] ),
'MER'[Title] == "Material Inspections"
)
RETURN
IF (
ISBLANK ( V ),
0,
V,
)
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi @kannanAhammed ,
TimelyResponseMaterialInspections =
VAR V =
CALCULATE (
MAX ( 'MER'[This month] ),
'MER'[Title] == "Material Inspections"
)
RETURN
IF (
ISBLANK ( V ),
0,
FORMAT (
V,
"Percent"
)
)
Percent by default will give you 2 decimal places rounding off.
You cna also format this measure in the ribbon above.
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-ribbon
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@harshnathani thanks for the reply, but when i run the Dax function provided I get 0 as output. And the ribbon is dissabled.
@AllisonKennedy yes you are right, I only want the decimal gone, but if the blanks can be removed with DAX i will take that too 🙂
Hi @kannanAhammed ,
Select the measure in the field pane, your ribbon will be enabled.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Hi @AllisonKennedy ,
There was a FILTER applied to the Table, which I removed.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
HI @AllisonKennedy ,
This is what I learnt from this video by Jeffery Wang
https://www.youtube.com/watch?v=bJtRB86n9tk
Watch the section from 35 to 45 min.
Regards,
Harsh Nathani
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
84 | |
66 | |
54 | |
43 |
User | Count |
---|---|
203 | |
106 | |
98 | |
65 | |
56 |