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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
Microsoft Employee
Microsoft 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

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
mahoneypat
Microsoft Employee
Microsoft 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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