Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
@adityapv , 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/50...
@adityapv , 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/50...
Hi amit,thank you so much.your solution is working.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |