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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
SagarChauhan1
Helper I
Helper I

2 different dynamic measures in single table with 2 different slicers

I need your help with power BI where i want 2 different dynamic measures (Base Sales & Comparision Sales) in single table with 2 different slicer (Actuals version) and Plan version) for each.



2 ACCEPTED SOLUTIONS

Hi,

Simplify the Sales measure to

Sales = DIVIDE(Switch (SELECTEDVALUE('LC-USD Switch'[Currency]), 
"Local", calculate (sum ('Master Data'[Value (LC)]),'Master Data'[Measure] = "Sales"), "USD", calculate (sum ('Master Data'[Value (USD)]),'Master Data'[Measure] = "Sales")),[Roundings])

Revise the measure to

Base 1 Sales = Calculate ([Sales],REMOVEFILTERS('Version - SF - Comp 1'))
Comp 1 Sales = Calculate ([Sales],REMOVEFILTERS('Version - SF -Base'))

Hope this helps.

Ashish_Mathur_0-1701951276976.png

 


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

View solution in original post

Hi,

It works well for 2 tables but when i add comp 2 measure then it is not working properly. I have used the bellow formula for Comp 2. Pls advice

SagarChauhan1_0-1702018232742.png

 






View solution in original post

14 REPLIES 14
SagarChauhan1
Helper I
Helper I

1st Column answer should be 237,177 (If we select "ACT 2023" in slicer Base"
2nd Column answer should be 252,348 (If we select "AOP 2023" in slicer Comp 1"


I cannot understand why the Data Model is so complex.  Why in the first place are there multiple "Version - SF - Comp 1" tables?  Also, in each of those tables, where are there 3 columns?


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

They all are same, but i thought we needed 2 different slicers hence created "Version - SF -Base" for Base 1 field and  "Version - SF - Comp 1" for Comp 1 field. (Ignore "Version - SF - Comp 2") (You can remove it as required)

Version - SF -Base  is taking data from column 1 (From table "Version - SF -Base" and column "Base"
Version - SF - Comp 1 is taking data from column 2 (From table "Version - SF - Comp 1" and column "comp 1"
I created this to have 2 differnet slicers.


Hi,

Simplify the Sales measure to

Sales = DIVIDE(Switch (SELECTEDVALUE('LC-USD Switch'[Currency]), 
"Local", calculate (sum ('Master Data'[Value (LC)]),'Master Data'[Measure] = "Sales"), "USD", calculate (sum ('Master Data'[Value (USD)]),'Master Data'[Measure] = "Sales")),[Roundings])

Revise the measure to

Base 1 Sales = Calculate ([Sales],REMOVEFILTERS('Version - SF - Comp 1'))
Comp 1 Sales = Calculate ([Sales],REMOVEFILTERS('Version - SF -Base'))

Hope this helps.

Ashish_Mathur_0-1701951276976.png

 


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

Hi,

It works well for 2 tables but when i add comp 2 measure then it is not working properly. I have used the bellow formula for Comp 2. Pls advice

SagarChauhan1_0-1702018232742.png

 






Thank you so much Ashish for your help to resolved this. It is really helpful and appreciate your time.

You are welcome.


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

Use 2 REMOVEFILTERS() in each measure.  DIY.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
SagarChauhan1
Helper I
Helper I

Hi, I have shared the file on your email. Unable to add file here.

Upload the file to Google Drive and share the download link here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file and show the expected result very clearly.


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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.