March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,I have created 4 measures
1.sales A
2.sales B
3.Profit A
4.Profit B
Now i need to display these measures in line graph.
Requirement:Slicer contains two fields 1.Sales 2.Profit
1.when i select Sales in slicer i need to display sales A and Sales B measures in line graph
2.when i select Profit in slicer i need to display Profit A and Profit B measures in line graph.
tried with switch condition but its not working please help me with this scenario
Solved! Go to Solution.
@Anonymous , You need to create two measures
A = Switch(SELECTEDVALUE(Slicer[Slicer]) ,
"Sales", [Sales A] ,
"Profit", [Profit A]
)
B= Switch(SELECTEDVALUE(Slicer[Slicer]) ,
"Sales", [Sales B] ,
"Profit", [Profit B]
)
use both in a visual
refer if needed
measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
@Anonymous , You need to create two measures
A = Switch(SELECTEDVALUE(Slicer[Slicer]) ,
"Sales", [Sales A] ,
"Profit", [Profit A]
)
B= Switch(SELECTEDVALUE(Slicer[Slicer]) ,
"Sales", [Sales B] ,
"Profit", [Profit B]
)
use both in a visual
refer if needed
measure slicer
https://www.youtube.com/watch?v=b9352Vxuj-M
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
Hi amit,thank you so much.your solution is working.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |