Forum Discussion
Creating measure that acts on all fields
ajk_powerbi use format function to convert number to text.
parry2k Thank you, but more detail please, see below:
% Blank Values =
VAR VFIELD1 = DIVIDE(
CALCULATE(COUNT(Excel_SpreadSheet1[FIELD1]), Excel_SpreadSheet1[FIELD1] = ""),
COUNT(Excel_SpreadSheet1[FIELD1])
)
VAR VFIELD2 = DIVIDE(
CALCULATE(COUNT(Excel_SpreadSheet1[FIELD2]), Excel_SpreadSheet1[FIELD2] = ""),
COUNT(Excel_SpreadSheet1[FIELD2])
)
RETURN
VFIELD1&FORMAT(VFIELD2, ?????)
- parry2k7 years ago
Super User
- ajk_powerbi7 years agoRegular Visitor
This is the error message I get when I use that format with "General Number"
Error Message:
MdxScript(Model) (10, 92) Calculation error in measure 'Calc Measured'[% Blank Values]: DAX comparison operations do not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.- parry2k7 years ago
Super User
ajk_powerbi not sure why, can you share pbix file, remove any sensitivie information before sharing.