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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calculate delta filtering 2 times on a column that has a possible versions in it

Hello,

 

I have a dataset 'Source'  that has several variables such as KPI name, period and the value and also a version. I want to compare 2 versions and show the delta between them by have 2 filters in the top to select a version.

I have loaded the source and then created 2 other tables with all possible versions:

 

Versie1.PNG

 

I have managed to create both filters and have independent visuals to show the values of the filter, but the delta is not possible:

Versie2.PNG

 

No. 1: Using measures like 

CALCULATE (SUM (Source[Waarde]);
    FILTER (ALLEXCEPT ( 'Source'; 'MainVersion' );
        Source[Versie] = MainVersion[MainVersionSelected]
    ))

  the delta is calculated but I want to be able to filter also on, KPI name, month and year and that is not possible this way.

 

No. 2:  Using measures like 

SUMX(FILTER(Source; Source[Versie] = MainVersion[MainVersionSelected]);Source[Waarde])

     the visuals show the correct figure but the delta is not calculated.

 

Included pbix:

 

PBIX link

 

Any ideas?

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Try this one, please. We only need to clear the unwanted filters.

Measure =
CALCULATE ( SUM ( Source[Waarde] ), ALL ( SecondVersion ) )
    - CALCULATE ( SUM ( Source[Waarde] ), ALL ( MainVersion ) )

Calculate-delta-filtering-2-times-on-a-column-that-has-a-possible-versions-in-it

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Try this one, please. We only need to clear the unwanted filters.

Measure =
CALCULATE ( SUM ( Source[Waarde] ), ALL ( SecondVersion ) )
    - CALCULATE ( SUM ( Source[Waarde] ), ALL ( MainVersion ) )

Calculate-delta-filtering-2-times-on-a-column-that-has-a-possible-versions-in-it

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-jiascu-msft Thank you this is exactly what I was looking for. The measure seems to be so simple:) I will study the ALL functions a bit more to understand how to use them in the future. Thanks again.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors