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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Pulkit
Resolver I
Resolver I

Show values of a column based on current filter selection

Hi All,

 

Is there any way we can apply a filter on the values that are being shown in a column in a table?

For example, I have a customer column and I am calculating there rolling 12 months sales and I am also calculating there previous 12 rolling month sales. So when I put these 2 measures in a table with customer column it also starts showing my customer from beyond rolling 12 months. I have tried putting conditions where rolling 12 months is blank but showing wrong results. Any advice?

Currently, there is only a single table for all this so no data model is there. 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Pulkit,

Do you means use filter/slicer to interaction with clause column/table to make them 'dynamic'? If this is a case, current power bi does not support this, they are stored on different data levels and not able to use the child level to effect its parent.

Notice: the data level of power bi.

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> virtual table of data view(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Pulkit , Not very clear

Can you share sample data and sample output in a table format? Or a sample pbix after removing sensitive data.

 

If your measure

Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],max('Date'[Date],-12,MONTH))

Rolling 12 till last 12 month = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],max(dateadd('Date'[Date],-12,month)),-12,MONTH))

 

 

Measure =if(isblank([Rolling 12]),blank(),[Rolling 12 till last 12 month])

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors