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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tnwcloud
Regular Visitor

Avoiding displaying duplicate values for parent child items in a matrix

I have a dataset that includes goals and multiple options for each goal. Each goal has a target value and each option has an estimate. There is a one to many relationship between goal and option. Trying to figure out how not to repeat the 'Goal Target' for each Option in the simplified matrix below. Basically I want the opposite of Don't Show Subtotals, where I show the Subtotal of 'Goal Target' for each Goal but don't show the lime item for each Option. Putting this under DAX but would welcome data model or visual option solutions.

 

tnwcloud_0-1722715861928.png

Can't figure out how to upload a file so...

tnwcloud_1-1722716212669.png

 

 tnwcloud_2-1722716273748.png

 

tnwcloud_3-1722716351035.png

 

2 ACCEPTED SOLUTIONS
DataInsights
Super User
Super User

@tnwcloud,

 

The May 2024 release of Power BI Desktop contains matrix enhancements including various layout options. Here's a link with details:

 

https://powerbi.microsoft.com/en-us/blog/power-bi-may-2024-feature-summary/#post-27048-_Toc167109007 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

Hi @tnwcloud 

Please try the following measure:

Goal Target = 
IF(
    NOT(HASONEVALUE('Options'[OptionID])),
    CALCULATE(
        SUM('Goals'[Target]),
        CROSSFILTER('Goals'[GoalID], 'Options'[GoalID], Both)
    ),
    BLANK()
)


Result:

vjialongymsft_0-1722847224792.png

 

 

 

 

 

 

Best Regards,

Jayleny

 

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

Hi @tnwcloud 

Please try the following measure:

Goal Target = 
IF(
    NOT(HASONEVALUE('Options'[OptionID])),
    CALCULATE(
        SUM('Goals'[Target]),
        CROSSFILTER('Goals'[GoalID], 'Options'[GoalID], Both)
    ),
    BLANK()
)


Result:

vjialongymsft_0-1722847224792.png

 

 

 

 

 

 

Best Regards,

Jayleny

 

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

DataInsights
Super User
Super User

@tnwcloud,

 

The May 2024 release of Power BI Desktop contains matrix enhancements including various layout options. Here's a link with details:

 

https://powerbi.microsoft.com/en-us/blog/power-bi-may-2024-feature-summary/#post-27048-_Toc167109007 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.