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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

based on selected month slicer values other column values populated in visual

I have 2 columns in databased IDMonthYear and PercentageArchived and for every month value is different for Percentage Archived.

table is like below 

 

BaselineIDMonthYear PercentageArchived
Apr-17                            100.00
Apr-17                             118.33
Apr-17                             1.73
Aug-17                            0.00
Aug-17                            0.00
Dec-17                           0.00
Dec-17                           0.00

 

so when user select any month from that slicer for that particular month values is populated PercentageArchived dynmically.

 

means i need to prepard DAX for Percenatage Archived  values for Baseline Month later i need to subtract that values for Percetgae Archived values for Compariosn month . i am new in DAX so please help out achived abobe scenario. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

 

>>means i need to prepard DAX for Percenatage Archived  values for Baseline Month later i need to subtract that values for Percetgae Archived values for Compariosn month 

Since I'm not so sure the 'Comparison month' means. Does it means current row records or other? Please share more detail to help us clarify this.

 

If it means use current row to compare with selected value, you can refer to below steps.

1. Use percent column to create new table, and let it as the source of slicer.

Selector = VALUES('Sample'[Percent]) 

5.PNG

 

2. Write a measure to calculate with selected value.

dynamic Diff = 
var selected=SELECTEDVALUE(Selector[Percent])
return
selected-MAX('Sample'[Percent]) 

Result:

6.PNG7.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Your question is not clear.  Based on the dataset that you have pasted, please show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous,

 

>>means i need to prepard DAX for Percenatage Archived  values for Baseline Month later i need to subtract that values for Percetgae Archived values for Compariosn month 

Since I'm not so sure the 'Comparison month' means. Does it means current row records or other? Please share more detail to help us clarify this.

 

If it means use current row to compare with selected value, you can refer to below steps.

1. Use percent column to create new table, and let it as the source of slicer.

Selector = VALUES('Sample'[Percent]) 

5.PNG

 

2. Write a measure to calculate with selected value.

dynamic Diff = 
var selected=SELECTEDVALUE(Selector[Percent])
return
selected-MAX('Sample'[Percent]) 

Result:

6.PNG7.PNG

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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