Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have 3 tables that has ambiguous relations - where the date table filters 2 table.
At the same time the Status Table needs to filter Fact Sales.
My attemtp to overcome this, I wrote the following DAX but did not work
Total Sales = Calculate(sum(SALES),
TREATEAS(SUMMARIZE(Fact Sales [CUSTOMER]),Status Table [CUSTOMER]))
The desired outcome is in Image below. thank you in advanced
Solved! Go to Solution.
Hi, @malcolmwunOW
Try below measure
Total Sales =
Calculate(
sum('fact sales'[SALES]),
TREATEAS(all(Status Table [CUSTOMER]),Fact Sales [CUSTOMER]))
If still does not work then please provide Screenshot of your data model
Best Regards,
Dangar
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @malcolmwunOW ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Eisha ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If the response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @malcolmwunOW ,
I hope the provided information by mdaatifraza5556 is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you
Hi @malcolmwunOW
You can use my first approach which is using LOOKUPVALUE DAX.
OR
correct your DAXusing below DAX.
Hi @malcolmwunOW
Remove the relationship between fact and status and in the fact table bring the status column using LOOKUPVALUE.
checkout the below DAX
Hi, @malcolmwunOW
Try below measure
Total Sales =
Calculate(
sum('fact sales'[SALES]),
TREATEAS(all(Status Table [CUSTOMER]),Fact Sales [CUSTOMER]))
If still does not work then please provide Screenshot of your data model
Best Regards,
Dangar
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
19 | |
14 | |
14 | |
11 | |
8 |