I would greatly appreciate some assistance on the following:
I would like to develop a card visual in PowerBI that shows an error message should the following instance occur:
Say I have two dropdown filters:
Filter 1 - Site
Filter 2 - Scenario
For every site that is selected in the dropdown, only one scenario should be allowed per site.
This means if I select in filter 1:
Site A
Site B
Now in filter two (which is the Scenario filter), I will see all scenarios belonging to Site A and Site B, and should I select more than one scenario belonging to Site A and more than one scenario belonging to site B - the card visual should display an error message saying:
“Incorrect selection, please select one scenario per site”
and selected only one Scenario per site in Filter 2 - this should be possible, however it is showing me
“Incorrect selection, please select one value per site”
Alternatively, if I select two Scenarios from the same Site, then it should display the error message:
“Incorrect selection, please select one scenario per site”
If you refer to the 1st sheet (Case 1) - I have selected two Scenario ID’s (Scenario ID 1 and 7), coming from 2 different Sites (Site 1 and Site 2). I need the card to display “Selection Correct” since this instance needs to be possible.
If you refer to the 2nd sheet (Case 2). I have made the same selection as represented in Case 1 , however, I have selected two Scenario IDs coming from Site 1(Scenario ID 1 and 2) and for Site 2 we have one Scenario ID (Scenario ID 7), and due to this it needs to display the error:
“Incorrect selection, please select one value per site” - because we have 2 Scenario IDs selected for Site 1
It is only possible to select one Scenario ID from one site at any given time. (Note - each Site has multiple Scenario ID’s)
I hope I have explained it better. Thanks for the assistance