Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sivadoss87
Frequent Visitor

How to display "No Record" in Matrix if there is no data for a column

Hi All,

 

I have a data set like the below,

 

Dataset.png

 

And  I am displaying this data by using Matrix visualization ,

Matrix_visual.png

For the categaory "E" there is no data for the month 2017-02 . So the value is Blank in the visual. I wanted to dispaly some text like "NR" in that place.

 

How could this be achieved, thanks in advance.

 

Regards,

P.Kalidoss

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

Hi @sivadoss87

 

I created a new Calculated table over your data as follows :

 

NR Table = 
        NATURALLEFTOUTERJOIN(
            CROSSJOIN(
                VALUES('Table1'[Category]),
                VALUES('Table1'[Yr-Mon])),
               'Table1')

And then on the new table I created the following Calcuated Measure

 

New Measure = if(sum('NR Table'[Value])=0,"NR",FORMAT(sum('NR Table'[Value]),"###"))

I could then create a matrix using the new table and measure

 

NR.png

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Employee
Employee

Hi @sivadoss87

 

I created a new Calculated table over your data as follows :

 

NR Table = 
        NATURALLEFTOUTERJOIN(
            CROSSJOIN(
                VALUES('Table1'[Category]),
                VALUES('Table1'[Yr-Mon])),
               'Table1')

And then on the new table I created the following Calcuated Measure

 

New Measure = if(sum('NR Table'[Value])=0,"NR",FORMAT(sum('NR Table'[Value]),"###"))

I could then create a matrix using the new table and measure

 

NR.png

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thanks a lot @Phil_Seamark

 

I will try this approach .

Hi @sivadoss87,

After test, @Phil_Seamark posted is right. If you have resolved your issue, please mark the reight reply as answer, which will help for other people. Thanks for understanding.

 

Best Regards,
Angelia

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.