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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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