Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Power bi Solution-
Calculated Columns with Dynamic/User-input Selections-
Note – this solution might not applicable to all places where a dynamic/user-input is needed.
Problem Statement—It is a common knowledge that we create Calculated measures and user-input can be used in it .
However if you want to create a calculated column and change the values of that column wrt to user- input or filter selection by users, Then column can’t work like this.
In short a calculated column can’t work on selected values().
Comment- Some might say that what is the need you can create this is calculated measure as well , but keep in mind that measure will only come in the values and if you put that in columns the whole view of the report will change.
Solution-
A work around can be applied to this situation.
Example Scenario –
User selection on View type – Sap View/ Treasury view
Calculated Column = if ( selected value(View type) = “Sap View” , “USD”, else if (selected value = treasure view , “local currency”)
In above scenario is it not possible to create a column.
Follow the below steps –
Meaning View type has 2 selection values Sap view and treasury view and with selection of sap view you need value of quote rate for sap in your field parameter and so on ,
Provide these selection values in the newly added column of field parameter – Sap View/ Treasury view
Only Challenge remains is how to connect this fields parameter with your original selection for View type
You functionality is achieved.
Download the PBIX from here
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |