Forum Discussion
How to create conditional variable with dynamic values?
- 11 months ago
Hi iadbmd
To help me reproduce your scenario and better understand why the slicer selections aren’t affecting the measure, could you please share a small but representative sample dataset in a usable format.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.Please show the expected outcome based on the sample data you provided.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Will this allow me to analyze an existing table, which is imported using a query, and calculate variables while the users select desired values using the slicer? My current issue is that the calculations are not changing to the newly selected numbers from the dropdowns.
Example: Say the table is 1000x20. I need to evaluate:
Result =
If (Var1 == "Active" & Var3 == "Green"), G_Active
ElseIf(Var1==Ïnactive"& Var3=="Green"), G_Inactive
and so on...
The values G_Active and G_Inactive need to be dynamic values that the user can change, preferably using a dropdown. I have a slicer for those. I cannot add a new column to the table because that is static, so it will not react to the slicer. This is an example of the calculation I need to make:
Hi iadbmd
Just checking in to see if your issue has been resolved. Were you able to implement the suggested approach and get the expected results?
If everything’s working now, that’s great! If not, feel free to share any updates I’m happy to help further.
- v-aatheeque1 year agoCommunity Support
Hi iadbmd
Just wanted to check on the current status of your issue.
Were you able to implement the suggested approach successfully, or are you still facing any issues.
Let us know where things stand we’re happy to assist further if needed.