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
dogt1225
Helper II
Helper II

Matrix Visual with two measures in a column

I have a matrix visual where the parent Category is Products and Sub Category is Engineer Name. (Infomation has been cutoff in screenshot for security purposes. )
I have two measures


  1. [Cat] is the percent of total by Product
  2. [SubCat] is the percent of total by Engineer within each Product. 

I am looking to create a combines column (last column within the screenshot), that only shows the [Cat] values when the hierarcy in the matrix is minimized and show both [Cat] and [SubCat] when the matrix is expanded to next level. 

With my current calculation the SubCat values are not appearing and showing all zeroes. 


Combine = 
IF(ISFILTERED('Volume'[Engineer Name]), [Cat], [SubCat])

 

Screenshot 2024-08-28 105429.png

1 ACCEPTED SOLUTION
_AAndrade
Super User
Super User

Hi @dogt1225,

Please try this formula:

 

Combine = 
IF(
    ISINSCOPE('Volume'[Engineer Name]),
    [SubCat],
    [Cat]
)


I hope this help you.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

2 REPLIES 2
_AAndrade
Super User
Super User

Hi @dogt1225,

Please try this formula:

 

Combine = 
IF(
    ISINSCOPE('Volume'[Engineer Name]),
    [SubCat],
    [Cat]
)


I hope this help you.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Idrissshatila
Super User
Super User

Hello @dogt1225 ,

 

try this 

 

Combine = 
IF(
    ISINSCOPE('Volume'[Engineer Name]),
    [Subcat],
    IF(
        ISINSCOPE('Volume'[Category]),
        [Cat]
        
    )
)

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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