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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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