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
kethavathamru03
New Member

I want to create calculated columnbased on slicer selection

 
1.png2.png

In front end based on slicer selection only, I need to show Product, Release, Calculated column fields in a table

5 REPLIES 5
MattAllington
Community Champion
Community Champion

You definitely can created calculated columns and use them for slicers. What you can't to is select a slicer and have it recalculate a calculated column. Maybe if you explain your date model (tables, relationships, etc) and explain what you want to do, someone will be able to help. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
MattAllington
Community Champion
Community Champion

You can't create calculated columns based on slicers.  Same goes for calculated tables. You need to write measures



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Would something like this work?

releaseProduct =
VAR release = SELECTEDVALUE(slicer[release])


RETURN
SWITCH(
TRUE(),
DataTable[release] = release, DataTable[Product],
DataTable[release] < release, "Reg",
BLANK()
)

You can't create calculated columns based on slicers



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Yes, I know however I need use this calculated colunm as slicer to select (dropdown ) selection, then what is the alternate way to achive this?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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