Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

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 . 

 

 

 

 

 

2 Replies

  • 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"
    )

    • Anonymous's avatar
      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.