Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
EsterBR
Helper II
Helper II

Parameters - Measures

Hi,

 

I have created the following table with the parameter Q/Month:

 

EsterBR_2-1711107184820.png

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!

 

 

 

 

4 REPLIES 4
v-yanimei-msft
Community Support
Community Support

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.

vyanimeimsft_0-1711357844370.pngvyanimeimsft_1-1711357850656.png

2.New parameter as the picture.

vyanimeimsft_2-1711357864316.png

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.

vyanimeimsft_3-1711357910140.png

vyanimeimsft_4-1711357915344.png

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.

_AAndrade
Super User
Super User

Hi,

Do you want to change the names od the columns to Sales per Q and SUM Sales?

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

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?:

_AAndrade_0-1711110830125.png

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.