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

How to ignore slicers from same table while creating mesaure?

https://www.dropbox.com/scl/fi/r1e4bnsf3d6xz6icxxi2i/TestFile.pbix?rlkey=8q62cq8arlz976ysuz3q4xcov&d... 

Hi Team

 

I am trying to create 3 meaures - 

Measure 1 in which user can see sum of values on the basis of selection month_modified_1
Measure 2 in which user can see sum of values on the basis of selection month_modified_2

Measure 3 in which user can see variance between measure1 and measure2

 

The problem which I am facing I have 2 slicers of month_modified_1 and month_modified_2 - both must have same month selected only then it is showing data otherwise not - the whole purpose of keeping these 2 columns are going in vain as I want to give user to select a month in both slicers to ignore each other and show respective sum of the values and variance. 

 

 

I have tried below and many ways of dax but nothing is working

ValueModified1 =
CALCULATE(SUM(WandoFullDataExtract[Value]),
KEEPFILTERS(
    FILTER(
        ALL(WandoFullDataExtract[Month_Modified_1],
            WandoFullDataExtract[Month_Modified_2]),
        WandoFullDataExtract[Month_Modified_1]=SELECTEDVALUE(WandoFullDataExtract[Month_Modified_1]))))
 
RatanBhushan_05_0-1692264310058.png

 

 

Please help as I am unable to upload the file here?

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @RatanBhushan_05 

 

You can try the following methods to create a new date table.

Date = VALUES(Sheet1[Month_Modified_2])

vzhangti_0-1692617838289.png

Measure 1 = SUM(Sheet1[Value])
Measure 2 = 
CALCULATE ( SUM ( Sheet1[Value] ),
    FILTER ( ALLEXCEPT ( Sheet1, Sheet1[Attribute] ),
        [Month_Modified_2] = SELECTEDVALUE ( 'Date'[Month_Modified_2] )
    )
)
Difference = [Measure 2]-[Measure 1]

vzhangti_1-1692617957170.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @RatanBhushan_05 

 

You can try the following methods to create a new date table.

Date = VALUES(Sheet1[Month_Modified_2])

vzhangti_0-1692617838289.png

Measure 1 = SUM(Sheet1[Value])
Measure 2 = 
CALCULATE ( SUM ( Sheet1[Value] ),
    FILTER ( ALLEXCEPT ( Sheet1, Sheet1[Attribute] ),
        [Month_Modified_2] = SELECTEDVALUE ( 'Date'[Month_Modified_2] )
    )
)
Difference = [Measure 2]-[Measure 1]

vzhangti_1-1692617957170.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.