Forum Discussion
PBI_Curious
5 years agoFrequent Visitor
Dax
I need to replicate a forumula in Excel which displays a ratio, being a sum of values based on certain criteria (in this case the number of items that failed in the Outcome column of a table) then ef...
- 5 years ago
You can do the same in DAX using the FORMAT function to convert numbers to whatever format you'd like.
Ratio = FORMAT ( [Numerator], "#,##0" ) & "/" & FORMAT ( [Denominator], "#,##0" )
PaulDBrown
Community Champion
5 years agoUse:
New measure =
VAR _Result = FORMAT([measure1], "Standard") & "/" & FORMAT([measure2], "Standard")
RETURN
SWITCH(TRUE(),
ISBLANK([measure1], BLANK(),
[measure1] = 0, BLANK(),
ISBLANK([measure2], BLANK(),
[measure2] = 0, BLANK(),
_Result)