March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a very simple model:
1 dim table:
My_dim |
dim1 |
dim2 |
dim3 |
dim15 |
1 fact table:
Date | My_dim | Nr |
1-1-2022 | dim1 | 5 |
2-1-2022 | dim2 | 20 |
1-1-2022 | dim3 | 50 |
2-1-2022 | dim1 | 100 |
I create a simple measure:
Solved! Go to Solution.
Hi @JWA___ ,
When you select a value (e.g. "dim 1"), the measure will only return 105 for the "dim 1" row, and the other rows will be blank. At this point Power BI will hide the rows with blank values by default. You can check "Show items with no data" to show the hidden rows.
You can also change the measure to the following formula.
Measure 2 = CALCULATE(SUM('Fact Table'[Nr]), ALL('Dim Table'))
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JWA___ ,
Try to stop interactions with the slicer and the table. For that you can go to "Edit Interacions" option under "Format" at the top ribbon.
If this helps you, then please hit the thumbs up & mark it as a solution. Thanks.
Hi @JWA___ ,
When you select a value (e.g. "dim 1"), the measure will only return 105 for the "dim 1" row, and the other rows will be blank. At this point Power BI will hide the rows with blank values by default. You can check "Show items with no data" to show the hidden rows.
You can also change the measure to the following formula.
Measure 2 = CALCULATE(SUM('Fact Table'[Nr]), ALL('Dim Table'))
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks, this does make sense. I thought of this last weekend, but this articulates it clearly, thank you.
Are both relationships one-to-many SINGLE direction from the dim table to the fact table?
Proud to be a Super User!
Paul on Linkedin.
I have the following relationship
Dim 1 : n Fact (single)
Dummy Dim 1 : n Fact (single)
I thought filtering on my Dim would never impact the records of my Dummy dim, because the filtering goes from Dummy Dim to Fact and not the other way around.
However I guess the Dim table does filter the fact table, to just one or a few records. And I suppose that Power BI only shows the Dummy Dim records for which there is a fact....
That is not what I expected after reading the article of @Phil_Seamark : https://dax.tips/2020/02/05/overriding-slicers/
Somehow filtering on his original date table, doesn't affect anything on the dates of his dummy table.
I just want to understand how this works and replicate the gist of the article.
So this is NOT about interactions. 🙂
Yes
Hi @JWA___ ,
Not sure if I follow what you are trying to do, however to override a slicer, you can use the Format/ Edit Interactions as I have done below. The table on the right is turned off, so it shows all, and the card on the left is left on, so it only shows the selected value.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
This is not what I want to achieve,
I want to do something similar als described in this blog post. But if I do what I described here for my dim table instead of the date table in the article, it doesn't work.....
https://dax.tips/2020/02/05/overriding-slicers/
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |