Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Avoid empty cells to appear in Dax

I have a matrix below which is based on the G/L Account and Product when I merge the net revenue with its percentage value using

Base | G/L Weekly Revenue and Its PCT = 
FORMAT( 'Calculations'[Weekly Sales], "Standard" ) & " ( " &  
FORMAT([Revenue | G/L PCT], "0.00%") & " )"

enter code here

It Creates empty cells
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

How to avoid this ? many thanks in advance

>Solution :

Use an IF statement.

Base | G/L Weekly Revenue and Its PCT = 
  IF(
    NOT(ISBLANK('Calculations'[Weekly Sales])) && NOT(ISBLANK([Revenue | G/L PCT])) ,
    FORMAT( 'Calculations'[Weekly Sales], "Standard" ) & " ( " &  FORMAT([Revenue | G/L PCT], "0.00%") & " )"
 
  )

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading