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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
TaylorOsenni
Frequent Visitor

Need help writing DAX measure

I have a dimension table that has an ABC analysis at 3 different aggregation levels. 

1)Product Code/Market - example "United States"

2)Product Code/ Region - example "Americas"

3)Product Code/ Global - just product code

Yeah one has its own ABC analysis assigned. Does anyone know of a way to make this possible? I have a Dimension "Region" table that has market and region. If I select one specific market, I want to see the abc analysis at market level. If I select a region I want it to show the ABC at region level, and if nothing selected then show the global?

Please let me know if this is possible. Thanks!

@Greg decker

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

Thankyou, @maruthisp, for your response.

Hi @TaylorOsenni,

Thank you for your inquiry on the Microsoft Fabric Community Forum.

Please find attached the screenshot and the PBIX file, which may assist in resolving the issue:

vpnarojumsft_0-1746687940883.png

If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will help other community members who face similar queries.
Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.

 

Thank you.

View solution in original post

5 REPLIES 5
v-pnaroju-msft
Community Support
Community Support

Hi TaylorOsenni,

We are following up to see if your query has been resolved. Should you have identified a solution, we kindly request you to share it with the community to assist others facing similar issues.

If our response was helpful, please mark it as the accepted solution and provide kudos, as this helps the broader community.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Hi TaylorOsenni,

We wanted to check in regarding your query, as we have not heard back from you. If you have resolved the issue, sharing the solution with the community would be greatly appreciated and could help others encountering similar challenges.

If you found our response useful, kindly mark it as the accepted solution and provide kudos to guide other members.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Hi TaylorOsenni,

We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you have identified a solution, we kindly request you to share it with the community, as it may be helpful to others facing a similar issue.

If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Thankyou, @maruthisp, for your response.

Hi @TaylorOsenni,

Thank you for your inquiry on the Microsoft Fabric Community Forum.

Please find attached the screenshot and the PBIX file, which may assist in resolving the issue:

vpnarojumsft_0-1746687940883.png

If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will help other community members who face similar queries.
Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.

 

Thank you.

maruthisp
Super User
Super User

Hi TaylorOsenni,

Try below DAX expression:
ABC_Contextual =
SWITCH(
TRUE(),
ISFILTERED('Region'[Market]), MAX(DimProductABC[ABC_Market]),
ISFILTERED('Region'[Region]), MAX(DimProductABC[ABC_Region]),
MAX(DimProductABC[ABC_Global])
)

If this reply helped solve your problem, please consider clicking "Accept as Solution" so others can benefit too. And if you found it useful, a quick "Kudos" is always appreciated — thanks! 

 

Best Regards, 

Maruthi 

LinkedIn - http://www.linkedin.com/in/maruthi-siva-prasad/ 

X            -  Maruthi Siva Prasad - (@MaruthiSP) / X 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.