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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors