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
krzysztof
Helper III
Helper III

Two measures in a table that filter differently

I made the Units (datenameslicer) measure which should only filter on the dataname and the second Units measure (weekslicer) should only filter on the weeks slicer. For example, I would like to select the period from the DataName filter, e.g. 10.10.2020-12.12.2020, to get the result only in the measure Units (datenameslicer) and in the slicer with weeks, for example, select the 20th week of 2020, get the result only in the measure Units (weekslicer), so that was to be compared between these measures.

Note: I cannot create computed tables and columns because I am using a live connection | Both measures must be in one table visualization


PBX: PBX 

Picture.png

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

You can use CALCULATE with REMOVEFILTERS to remove the filter on the slicer you don't want to affect the result, and do the opposite on the other.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@krzysztof , You need to have two different date table and one of them need to be independent.

Refer to my blog, I use two date ranges. You can week in one case

 

https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

mahoneypat
Employee
Employee

You can use CALCULATE with REMOVEFILTERS to remove the filter on the slicer you don't want to affect the result, and do the opposite on the other.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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