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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
vedika1089
Helper I
Helper I

Control the first row values in a Matrix

I have a matrix that displays available-to-sell quantities, indicating both current on-hand inventory and projected future availability. At the row level, data is broken down by incoming dates, with a running total of quantities across sizes shown in columns. However, when rolling up to the product level, the values are sum up across all rows, leading to inaccurate totals.

Ideally, I want the matrix should show only the on-hand quantity at the product level when not expanded, while allowing drill-down to reveal incoming dates and projected availability.

 

vedika1089_0-1730915640341.png

 

Thank you

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi All,
Firstly  vojtechsima thank you for you solution!

And @vedika1089 ,You want to show only the OnHand quantity before the ATP Date, and then count the number of items arriving after the ATP Date, right?

If this is the case, we can use the isinscope function to help us fulfill this requirement.

DisplayedTotal = 
IF(
    ISINSCOPE('Table'[Lead_Time]), 
    SUM('Table'[Value]),
    IF(ISINSCOPE('Table'[ItemGroup]),
    CALCULATE(SUM('Table'[Value]),'Table'[ATP_Date]="OnHand"),
    SUM('Table'[Value])
    
))

vxingshenmsft_0-1730946400748.png

I hope this solves your problem, if you have any other questions you can check out the pbix file I uploaded, I would be honored if it solves your problem!

 

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.


 

View solution in original post

Anonymous
Not applicable

Hi @vedika1089 ,

It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!
Looking forward to your reply!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @vedika1089 ,

It's been a while since I heard back from you and I wanted to follow up. Have you had a chance to try the solutions that have been offered? If the issue has been resolved, can you mark the post as resolved? If you're still experiencing challenges, please feel free to let us know and we'll be happy to continue to help!
Looking forward to your reply!

Anonymous
Not applicable

Hi All,
Firstly  vojtechsima thank you for you solution!

And @vedika1089 ,You want to show only the OnHand quantity before the ATP Date, and then count the number of items arriving after the ATP Date, right?

If this is the case, we can use the isinscope function to help us fulfill this requirement.

DisplayedTotal = 
IF(
    ISINSCOPE('Table'[Lead_Time]), 
    SUM('Table'[Value]),
    IF(ISINSCOPE('Table'[ItemGroup]),
    CALCULATE(SUM('Table'[Value]),'Table'[ATP_Date]="OnHand"),
    SUM('Table'[Value])
    
))

vxingshenmsft_0-1730946400748.png

I hope this solves your problem, if you have any other questions you can check out the pbix file I uploaded, I would be honored if it solves your problem!

 

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.


 

Thank you so much ! This works, I apologise for the delayed response

vojtechsima
Super User
Super User

Hello, @vedika1089 ,

you can try playing with HASONEVALUE,

have a measure that is something similar to 

 

IF ( HASONEVALUE('table'[product_level]), [regular_measure], CALCULATE( [regular_measure], 'table'[ATP_Date-copy]="OnHand") ) 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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