Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Add Missing items with null/blank/0

Hi Community,

 

I have a table with 3 columns, Name is slicer in my report. If i select Bala it will show all 4 region details of bala.

If i select Dhanpal or Sudhakar it needs to show all 4 regions for both with blank/Null,0 value in sales column.

 

This is my Table:

 

NameRegionSale
BalaEast10
BalaWest20
BalaNorth30
BalaSouth40
DhanpalEast25
DhanpalWest35
DhanpalSouth45
SudhakarWest15
SudhakarNorth40

 

My Desired Output: If i select Sudhakar

NameRegionSale
SudhakarWest15
SudhakarNorth40
SudhakarEastNull
SudhakarSouthNull

 

Can you guys please help me out from this

 

Thank you in advance

B V S S

  • Anonymous , You have create a measure with +0. Also change data type sales to number

     

    Please find the file attached after signature. Check for Measure 2

     

4 Replies

  • Anonymous , As Sudhakar do not have all the values.

     

    You need have Region dimesion as separate table joined to this table with region and then use +0 to the measure or use this option - Show  Item with no Data for Region

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi amitchandak ,

       

      Thank you for the response.

       

      I tried your solution. But no luck. 

      Here Download here i am attaching my pbix file. can you please have a look and let me know what i am missing

       

      Thank you in advance

      B V S S

  • Anonymous , You have create a measure with +0. Also change data type sales to number

     

    Please find the file attached after signature. Check for Measure 2

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous,

    I think you need to create a calculated table with all region values and use it on your visual with the raw table category.  Then you can write a measure formula to lookup value based on current category and region, use the if statement to replace the not matched value to blank.

    Regards,

    Xiaoxin Sheng