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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ikibirev
Frequent Visitor

DAX grouping by linked dimension

Hi!

I have a table with facts that are linked to the dimension table by the Item attribute. And the dimension table has another attribute – LinkedItem.

 

I want to get DAX calculation LinkedAmount that for each Item calculates amount of all fact lines where that item is presented as a LinkedItem.

 

Something like this:

Dim.Item

Dim.LinkedItem

Facts.Amount

 

LinkedAmount

Item1

Item4

10

 

0

Item2

Item4

20

 

0

Item3

Item4

30

 

5

Item4

Item3

5

 

60

 

Please advise how formula should look like.

 

Thanks in advance!

1 REPLY 1
amitchandak
Super User
Super User

I am not sure I got it completely. But please try.

Create a relation between linked item and item dim. Make sure it is inactive. Create a formula so facts amount using that relation. Use userelation. As you will view at the item, because of the join it should give you the required data.

 

Refer to this example of how to shift relation

 

https://community.powerbi.com/t5/Desktop/DATE-RANGE-SLICERS-TO-COMPARE-NETSALES-OF-A-DATE-RANGE/td-p...

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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