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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
vnqtrang
Helper I
Helper I

Matrix : Values are repeated and display the irrelevant rows

Hi,

 

I have the matrix of 5 levels. The 2nd and 3rd columns are measures. 

From the 4th level, all the rows have the same value.

- I would like to display the value of each line, not the total of that level.  

 

Capture.PNG

- in the last level, I would like to display only items of that level, not all the existing row

Capture&.PNG

 

Thank you in advance for your advise.

Tg

2 REPLIES 2
v-cgao-msft
Community Support
Community Support

Hi @vnqtrang ,

 

- I would like to display the value of each line, not the total of that level.  

- in the last level, I would like to display only items of that level, not all the existing row

The ISINSCOPE function is very useful, you can use it to determine which hierarchy it belongs to and output different results.

For example, the output [Measure] is determined when the hierarchy is [Column5].

Measure 2 = IF(ISINSCOPE('Table'[Column5]),[Measure])

vcgaomsft_2-1658986565217.png

Please refer:

ISINSCOPE – DAX Guide

Use IsInScope to get the right hierarchy level in DAX

 

If I have misunderstood your needs, feel free to contact me. You may also consider sharing more data and expected output, it will be very helpful to solve the problem, thanks in advance!

How to provide sample data in the Power BI Forum

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Hi, 

 

Thank you for your reply. 

my data comes from 3 different tables, and the 1st and 4th columns are not measures, but the 2 and 3rd are measures. 

When I use your measure, it doesn't filter on the Rows with empty values, and there is no total of each row. 

The expecting result is to remove the rows which are not in the hierarchy.

 

Tg

 

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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