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
Anonymous
Not applicable

Multiple Calculated column depending upon one parameter

I am trying to make two different columns whoes values should be depended on the parameter value selected in slicer,
like when i select option 1 the values of those two columns should change, and if i choose option 2 then both column values should change accordingly.
So let me give a example, there is a parameter called period which contain four values monthly, quarterly, half yearly, and yearly, i want to make one column which will show the date monthly if monthly is selected, quarter wise if quarterly is selected and so on, similarly there i want one more column to change its value according to the value selected by period paramter, how can i do that. I can do it if there was only one column using field parameter but how can i do with multiple column, please help.

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,
I have not the problem in changing the date format using slicer, that I can do it was just an example but i want one more column to change with the change in selection of slicer, that i cannot do it with the field parameter, so can to tell me how to do it

Anonymous
Not applicable

Hi @Anonymous,

 

I suggest you to create a Calendar table and then use Fields Parameters.

Calendar = 
ADDCOLUMNS (
    CALENDAR ( DATE ( 2023, 01, 01 ), DATE ( 2023, 12, 31 ) ),
    "Year", YEAR ( [Date] ),
    "Quarter",
        "Q" & ""
            & QUARTER ( [Date] ),
    "Month", FORMAT ( [Date], "MMMM" ),
    "MonthSort", MONTH ( [Date] )
)

Field Parameter:

vrzhoumsft_0-1692176617996.png

Add Period in Axis field in your visual.

vrzhoumsft_1-1692176643536.png

vrzhoumsft_2-1692176649866.png

vrzhoumsft_3-1692176656686.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.