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
arndtvissing
Frequent Visitor

Creating a flag from one fact table to filter another fact table

Hi all

 

I have a problem I am trying to solve. I am trying to see if I can solve this using just DAX instead of having to change the data model.

I have 2 fact tables, one that contain sales volume which is by order number, and a second fact table that contains the order number, the account number and the revenue.

 

These are then linked to a order table, and the revenue fact table is linked to an account table. A classic star schema model.

Now, what I want to achieve is to make a dynamic filtering on my volume table, depending on the account that has been selected in my account dimension. If an order has revenue on the specific account, then the visual should show the corrosponding sales order. If the order number does not have the selected account, then it should not show the sales volume.

 

Any good tips on how to do this? I tried using variables and calculatetable but I am getting stuck. Hoping for some help.

 

Volume fact table

Order NumberVolume
s

10

s2

5

 

revenue Fact table

order numberaccountrevenue
sa15
sa24
sa310
sa48
s2a192
s2a45

 

and then 2 dimension tables, below "Order number" with 1-* relationships to both fact tables

 

Order number
s
s2

 

and account dimension with 1-* tot he revenue fact table only. This is the table i want to use for my parameter selection

Account
a1
a2
a3
a4

 

1 REPLY 1
PaulDBrown
Community Champion
Community Champion

@arndtvissing 
any chance you can show a depiction of the expected outcome?

 

I'm not sure what exactly needs to be shown. 

See image

Testing.JPG

 





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
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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.