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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
ADAM_DUNWORTH
Frequent Visitor

How to Compare Two Selected Values in A Filter

Hi All 

 

Hoping someone can help me with a particularly tough problem 

I want to compare the difference between mulptiple selected values in a filter 

 

So if the user selects Date 1 [1st Jan] and Second Date in the Filter Say [1st Mar] 

ADAM_DUNWORTH_0-1675177229940.png

The difference would be [+10] 

ADAM_DUNWORTH_1-1675178877012.png

Im open to ideas on how to do this 

The way i was thinking of solving this was to split the volume into two different tables via (First Selection, Second selection) and then making a measure but i cannot seem to create two tables via the filter 

 

Filter - Selected Value but this does not seem to work 

ADAM_DUNWORTH_2-1675178977792.png

 

I cannot pivot the columns as in the real use case the dataset is very large and the number of record dates is huge. 

 

Will really appreciate if someone knows how they'd do such a thing 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable
5 REPLIES 5
ADAM_DUNWORTH
Frequent Visitor

yes apologies for the delay in response its not the ideal but it is a workable solution. thanks 

Anonymous
Not applicable

Yes, Sadly most solutions to what seems like a simple request have difficult fixes due to PowerBI not supporting simple logicial features the best. 

v-shex-msft
Community Support
Community Support

Hi @ADAM_DUNWORTH,

Did these two filters used the same table field as source? AFAIK, current power bi does not support to get different value from the same source table field.

You need to create an unconnected table as source for filter2 to get different selections values, then you can use it to compare with the raw filter selections.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Yes its all one table. I also tried making two seperate tables where which had a single distinct column for the date column and then tried via that way but the attempt still failed 

Anonymous
Not applicable

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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