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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
zoubeyrB
Frequent Visitor

using filters without adding new rows

Greetings,

 

I'm having an issue with the way DAX handles relationships, so here's an example I'm currently working on :

 

First case : all filters are from the same table :

illustr.jpg

In this case it works just fine, when I add the following measure no inexistant combinations are added:

2.removeLabel = CALCULATE(SUM(test[sales]), REMOVEFILTERS(test[product_label]))

illustr.jpg

Second case : filters are from different tables :

illustr.jpg

In this case using the exact same expression leads to the apparition of new inexisting combination of values for the different filters

1.removeLabel = CALCULATE(SUM(sales[quantity]), REMOVEFILTERS(labels[Label]))
illustr.jpg
Is there a way to solve this issue just by modifying the measure (without adding new columns) ?
 
Thanks in advance,
1 ACCEPTED SOLUTION

Hello,

Using a star schema did solve the issue, thanks.

Best regards,

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @zoubeyrB 

 

Please remove the cross-filters from the model...  and best just create a simple decent model and get rid of the one above (which is, to simply put it, incorrect). You'll have a much better (quality of) life in no time 🙂

 

Here's something to get you started on the right foot:

Understand star schema and the importance for Power BI - Power BI | Microsoft Docs

 

Hello,

Using a star schema did solve the issue, thanks.

Best regards,

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors