Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, I'm new to Power BI and I've recently come across a scenario where I have two sales columns, each one is a different currency. I would like to have a matrix visual and a slicer on top where you can choose which currency to show. This would show in the matrix the correct income column.
I have [Ventas_MXP] and [Ventas_USD]. These are my sales columns for USD and MXP (Mexican peso).
I would like to select USD in the Currency slicer and filter from the matrix that sales column.
I was thinking of creating a new column and maybe using the Dax function "SELECTEDVALUE"? I'm not sure if this is the best way to do so.
Appreciate the help!
Solved! Go to Solution.
Hi @hctrgrc ,
You have the right idea!
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a measure
Sales =
VAR _a = SELECTEDVALUE('Table 2'[Currency])
VAR _b = IF(_a = "USD",SUM('Table'[Sales for USD]),SUM('Table'[Sales for MXP]))
RETURN _b
2.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much! It worked just as you showed!
Hi @hctrgrc ,
You have the right idea!
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a measure
Sales =
VAR _a = SELECTEDVALUE('Table 2'[Currency])
VAR _b = IF(_a = "USD",SUM('Table'[Sales for USD]),SUM('Table'[Sales for MXP]))
RETURN _b
2.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |