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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors