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 August 31st. Request your voucher.

Reply
Housden996
Helper II
Helper II

Show only top level Matrix Value

HI 

 

I am trying to show just the top level value for one value in my Matrix:

Housden996_1-1723627897904.png

I have had a look around online looking for DAX caluclations and had a crack with the HASONEVALUE function which some what works as shown above, DAX bellow:

taget =
IF(HASONEVALUE(Project[Name]) , blank(), SUM('Project Targets'[Value]))
 
How do I tweek the DAX so it works for both top level contract columns which contain one or , contains one project or more projects?
 
I Have tried this at the contract level but this pulls in for every level of the hierachy.
 
 

 

1 ACCEPTED SOLUTION

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1723776670755.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Clearly show the expected result.  Also, share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi 

 

Please find the example in the GDrive link bellow:
https://drive.google.com/file/d/11TCkutsMxeok_5WkVaHJbztYtOn9WtgR/view?usp=sharing

Thank you

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1723776670755.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This is exactly what I am after thank you Ashish! 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ritaf1983
Super User
Super User

Hi @Housden996 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

HI 

 

PLease find the example in the GDrive link bellow:
https://drive.google.com/file/d/11TCkutsMxeok_5WkVaHJbztYtOn9WtgR/view?usp=sharing

Thank you

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.

Top Solution Authors