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
Anonymous
Not applicable

How to get out of current row context in a visual table in a measure

Hi,

 

I have a raw data table, which has data for sales of products to customers and some other related fields like region, main group, whether contracted, sales channel, etc.

 

I want to display a table which uses slicer filters and displays data accordingly. Additionally, in the row cVolume customer 1, it should display the total volume that the customer in context is buying in the currently displayed rows. Just to show as an example, cVolume customer(Total volume that customer is buying regardless of any product; eg SOLENIS 182.9 is the total volume for all products it buys) contains the right values cVolume customer 1 should be showing. 

 

qwerty20071994_1-1614327131005.png

 

I am using the measure for cVolume Customer 1, but its not getting out of the current row context for PRD. 

qwerty20071994_2-1614327381773.png

 

I also tried using COBUS[PRD] instead of cutomer hierarcy in the measure formula and still the exact same values.

 

Please help!!

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want to get out of context, you can try to use the ALL or ALLEXCEPT function.

 

ALL returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table.

ALLEXCEPT removes all context filters in the table except filters that have been applied to the specified columns.

 

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you want to get out of context, you can try to use the ALL or ALLEXCEPT function.

 

ALL returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied. This function is useful for clearing filters and creating calculations on all the rows in a table.

ALLEXCEPT removes all context filters in the table except filters that have been applied to the specified columns.

 

 

Best Regards,

Stephen Tao

 

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

PaulDBrown
Community Champion
Community Champion

@Anonymous 

Please share some sample data or PBIX file and a clear depiction of the expected outcome.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.

Top Kudoed Authors