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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
HxH
Advocate II
Advocate II

Showing value only at one level of hierarchy

Hi everyone,

I have created a matrix that shows in the rows the customer and related product purchased, and as values the number of products they have purchased So basically I have something like: 
CUSTOMERS       NUMOFPRODUCTS
Customer X                    3

         Product A              1

         Product B              1

         Product C              1  

 

In my data I have a column with text values that shows the current status of a product. I would like to add this text in the matrix, but only show it at the product level, and not at the customer and total level. I want something like:

 

CUSTOMERS       NUMOFPRODUCTS      STATUS 
Customer X                    3

         Product A              1                        Delivered

         Product B              1                        Not Delivered

         Product C              1                        Not Delivered

However, if I simply put the column in the values, also the Customer X and Total levels of the matrix are filled. How can I solve this? 

Thanks

1 ACCEPTED SOLUTION
HxH
Advocate II
Advocate II

I already solved it nevermind. It's a combination of isinscope and hasonevalue! It didn't come to my mind in the first place

Measure =
IF(
ISINSCOPE('Salesforce Data'[Product Name]) && HASONEVALUE('Salesforce Data'[Reason for Stopped]),
VALUES('Salesforce Data'[Reason for Stopped]),
BLANK()
)

I'll offer myself a coffee for the help 

View solution in original post

3 REPLIES 3
femmegeek
Regular Visitor

This is a clever solution. Just what I needed. Thanks!

HxH
Advocate II
Advocate II

I already solved it nevermind. It's a combination of isinscope and hasonevalue! It didn't come to my mind in the first place

Measure =
IF(
ISINSCOPE('Salesforce Data'[Product Name]) && HASONEVALUE('Salesforce Data'[Reason for Stopped]),
VALUES('Salesforce Data'[Reason for Stopped]),
BLANK()
)

I'll offer myself a coffee for the help 

Just had the same issue. It works perfectly - Thanks! 

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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