Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
My table looks like this (plus other volume related columns):
I'm aiming to have all columns switch to "Value" when a user selects it.
While one apparent solution is to create a field parameter, such as "Volume/Value Period," for each column, doing so for around 10+ columns seems not optimal.
Is there a more efficient approach you would recommend?
Thanks in advance!
Solved! Go to Solution.
Create Parameter: Go to the Modeling tab and create a new parameter named "Measure Type" with two options: "Value" and "Volume".
Create Calculated Column or Measure: Use DAX to create calculated columns or measures that dynamically switch between "Value" and "Volume" based on the parameter selection. For example:
Switch(
SELECTEDVALUE('Parameter'[Measure Type]),
"Value", [Value Column],
"Volume", [Volume Column]
)
Replace [Value Column] and [Volume Column] with the appropriate column names in your data model.
Use Calculated Fields: Use the calculated columns or measures in your visualizations instead of the original columns. They will automatically adjust based on the selected measure type.
By following this approach, you can efficiently handle switching between "Value" and "Volume" for multiple columns without creating separate parameters for each column.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
Create Parameter: Go to the Modeling tab and create a new parameter named "Measure Type" with two options: "Value" and "Volume".
Create Calculated Column or Measure: Use DAX to create calculated columns or measures that dynamically switch between "Value" and "Volume" based on the parameter selection. For example:
Switch(
SELECTEDVALUE('Parameter'[Measure Type]),
"Value", [Value Column],
"Volume", [Volume Column]
)
Replace [Value Column] and [Volume Column] with the appropriate column names in your data model.
Use Calculated Fields: Use the calculated columns or measures in your visualizations instead of the original columns. They will automatically adjust based on the selected measure type.
By following this approach, you can efficiently handle switching between "Value" and "Volume" for multiple columns without creating separate parameters for each column.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |