Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Showing rows with NULL value in report

I'm working with a measure which count total value to a column and want to show the following table in report:

 

Prod_idValue
45ret15415.5
vdf514grNULL
kjybh8987.5
liojki86747.90
qrdep67NULL
Total 70,9

 

 

 

Total value =

SUMX(
SUMMARIZE('fact',
,('fact'[Prod_id])
,"Total",MAX('fact'[Value])
)
,[Total]
)

 

but it shows this in report:

 

Prod_idValue
45ret15415.5
kjybh8987.5
liojki86747.90
Total 70,9

 

Measure works fine but in table in report it does't show rows with NULL value, I need to have all Prod_id in report. How should I change the measure to have all prod_id in report?

4 Replies

  • mahoneypat's avatar
    mahoneypat
    Icon for Microsoft Employee rankMicrosoft Employee

    You can add + 0 to your MAX expression.

    Pat

    • Anonymous's avatar
      Anonymous
      Not applicable

      mahoneypat Thank you for your reply  but can you please give an example?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous , you can try enabling "Show items with no dat option" for the table visual. Just click on the drop down arrow beside the Prod_id column as shown:

     

     

    Did I solve your problem?

    If yes, please mark my solution Accepted!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Anonymous  Thanks for your reply! Adding 0 to MAX in measure resolved the issue and I've already accepted it as a solution.