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! Learn more

Reply
MHTANK
Helper III
Helper III

slicing effect on report

DATA:

data.png

Report:

report.png

Measures:

sale_avg = CALCULATE(AVERAGE(Sheet1[sale_value]), Sheet1[Status]="Sale")
stock_avg = CALCULATE(AVERAGE(Sheet1[stock_Value]), Sheet1[Status]="Stock")
Purpose:
When I filter from slicer I want effect only on sale_avg line not affect stock_avg line data.
purpose.png
1 ACCEPTED SOLUTION

Hi @MHTANK ,

 

I apologize for the missleading answer, the question is that since you are using data from the same table you get the data filter on the visualization and there is no option for you to remove it since the context is based on the filtered values from the diff and you cannot change the context passed to the axis individually.

 

For this create a new table with the months and make a relationship with the sheet1

 

MFelix_0-1712933063617.pngMFelix_1-1712933072146.png

 

Now redo your measure to:

stock_avg = 
CALCULATE(AVERAGE(Sheet1[stock_Value]), FILTER(ALL(Sheet1[Status]),Sheet1[Status]="Stock"), REMOVEFILTERS(Sheet1[Diff], Sheet1[Month]))

MFelix_2-1712933156152.png

Please see attach file.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @MHTANK 

 

Redo the stock average measure to:

stock_avg = CALCULATE(AVERAGE(Sheet1[stock_Value]), Sheet1[Status]="Stock", REMOVEFILTERS(Sheet1[Diff]))

MFelix_0-1712762769534.pngMFelix_1-1712762781806.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Screenshot 2024-04-12 133619.png

By that measure stock line also affect.

Hi @MHTANK ,

 

I apologize for the missleading answer, the question is that since you are using data from the same table you get the data filter on the visualization and there is no option for you to remove it since the context is based on the filtered values from the diff and you cannot change the context passed to the axis individually.

 

For this create a new table with the months and make a relationship with the sheet1

 

MFelix_0-1712933063617.pngMFelix_1-1712933072146.png

 

Now redo your measure to:

stock_avg = 
CALCULATE(AVERAGE(Sheet1[stock_Value]), FILTER(ALL(Sheet1[Status]),Sheet1[Status]="Stock"), REMOVEFILTERS(Sheet1[Diff], Sheet1[Month]))

MFelix_2-1712933156152.png

Please see attach file.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.

Top Solution Authors