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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.