Forum Discussion
Anonymous
8 years agoNot applicable
Visual showing blank rows using SELECTEDVALUE and FORMAT Function
I have a couple of matrix visuals that I am trying to condesnse into one using a slicer and SELECTEDVALUE to change the data in the table. I was trying to clean up with the output with the FORMAT Fu...
- 8 years ago
Hi Anonymous,
We only need to add a condition like below.
CB Data = IF ( SELECTEDVALUE ( 'CB Selection'[CB Selection] ) = "Eaches", FORMAT ( [CB Eaches], "#,##0;(#,##0)" ), IF ( SELECTEDVALUE ( 'CB Selection'[CB Selection] ) = "Net Sales", FORMAT ( [CB Contract Value], "$#,##0;($#,##0)" ), IF ( ISBLANK ( 'CB Selection'[CB Selection] ), BLANK (), FORMAT ( [CB MS%], "0.0%;(0.0%)" ) ) ) )Best Regards,
Dale
RobbLewz
3 years agoHelper II
Are microsoft not treating this as a bug?
Using if is blank over a large dataset isn't practical.
IP_Kornel
2 years agoFrequent Visitor
I agree, this is crazy. In my case I need the percentage forma. Either I have an empty row that I need to filter out later from visual or check for blanks and leave them as they are and rest format to percent values. That second options makes for example one row with 5.43% and next row is 0.00 without % sign that looks plain stupid.