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

How to make dynamic calculation to calculated columns based on end-user selection

Hi,

 

I have a problem with calculated columns. The goal is to get working calculated column month grouped similarly like Month grouped Measure. The best way is to look at the app which is the attachment

https://github.com/anatoli85/PowerBI . 

 

Determistic_0-1684692874369.png

 

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You can not create a calculated column based on slicer value , you have to create a measure

 

Month Type = Switch( True(),
Max(Table[Period]) = selectedvalue(Table[Period]),"This Month" ,
"Other"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I need a calculated column, is there any way to turn around this problem? Other  BI tools (like Qlik, Tableuau) it is possible.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.