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,
I have created the following table with the parameter Q/Month:
When you select Quarter, the parameter shows the field Quarter and when you select Month the parameter shows the field Month in the columns.
I would like that in values when you select Quarter in the parameter, the values show the field Sales per Q and when you select Month the parameter shows the field SUM Sales. Is this possible? Thanks!
Hi all ,
@_AAndrade , thanks for your concern about this case, I have some additions for problem solving.
@EsterBR , thank you for giving a specific description of the problem. Based on your description, I will give you the following steps to solve the problem.
1.The test table Table.
2.New parameter as the picture.
3.New measure Average/Sum and input:
Average/Sum =
If(SELECTEDVALUE('Parameter Q/Month'[Parameter Q/Month Order]),SUM('Table'[Sales]),AVERAGE('Table'[Sales]))
4.Add Region to Rows, add Parameter Q/Month to Columns, add Average/Sum to Values.
5.The outcome is in the following pictures.
You can modify the above DAX codes according to your needs.
Best Regards,
Caroline Mei
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Do you want to change the names od the columns to Sales per Q and SUM Sales?
Proud to be a Super User!
Hi @_AAndrade,
I would like that when Quarter is selected in the parameter, the measure shown in values is "Sales per Q" and when Month is selected in the parameter, the measure shown in values is "SUM Sales". Both measures are already created in the report.
Thanks
The name of this measure here?:
Proud to be a Super User!
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 |
---|---|
62 | |
55 | |
55 | |
36 | |
34 |
User | Count |
---|---|
76 | |
73 | |
46 | |
45 | |
43 |