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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
Resident Rockstar
Resident Rockstar

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.