Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello, so I have two FACT tables and three DIM tables. FACT table one (orders) has a monthly level of granularity, while FACT table two (sales) has a daily level of granularity. Both FACT tables are related via the three DIM tables up top. I'm trying to find a way to sum the orders in the Orders FACT table based on an attribute that exists in the Sales FACT table (this attribute does not exist in any of the DIM tables, it only exists in the Sales FACT table). Is there a way I can use DAX to calculate the total orders by customer based on this attribute that only exists in the sales table? For example, sum the orders for customers where the Sales attribute equals "true"?
Hi!
With the information provided I think you could create a calculated column in the customer dimention table. If this is the model:
And this is the Fact Sales:
As you can see I created different line of Sales for the customer 03, assuming that the flag can change for the same customer.
To give True if at least one of the Sales rows for the customer is true, create the calculated column:
Otherwise, if you want to give false if at least one row is false:
Once you have this flag just calculated the measure like:
Measure for customer True = CALCULATE([Measure], Customer[Sales Flag] = 1)
I hope I answered your question,
Have a good day,
Marisol
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |