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

Join 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.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.