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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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