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 All,
I have created the below table with the values.
Savings Selector = DATATABLE( "Index", INTEGER, "MyColumns", STRING, { { 1, "Flat" }, { 2, "Escalating" }, { 3, "Discounted"} })
Then I create a measure to use a column a a slicer.
Tariff (new) = VAR selectedcolumn = SELECTEDVALUE ( 'Savings Selector'[Index] ) RETURN SWITCH ( TRUE (), selectedcolumn = 1, SUM ( Savings[Flat tariff savings (THB)] ), selectedcolumn = 2, SUM (Savings[Escalating tariff savings (THB)] ), selectedcolumn = 3, SUM (Savings[Discount tariff savings (THB)]))
The issue now is when I click on the slicer individually it is working fine but if I select multiple items it goes blank as I haven't defined in the Tariff (new). Please see screenshots for understanding.
I don't think showing data for multiple Index selections is possible when you are using only one variable to store the value.
A Variable can take only one vale as an input. Hence when you select multiple values in your index, your variable value becomes blank and hence the graph also returns blank
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 |
---|---|
108 | |
105 | |
88 | |
74 | |
66 |
User | Count |
---|---|
126 | |
111 | |
100 | |
83 | |
71 |