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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Steels_Cat
Helper I
Helper I

Need to create calculated Column for counting values based on selected filters/values

Hello All, 
I have to create dynamic calculated column or do not know how to call it  - filter "CountFlight" - is a just Calculated column based on this measure - 

CALCULATE(COUNTROWS('table1'),FILTER('Table1','Table1'[Flight]=EARLIER('Table1','Table1'[Flight]))). The main problem is that the client wound like to create a filter based on this column but after i use the filter "Filter Service type" and the date range, for example last 6 months - CountFlights is not equal to TotalFlights (COUNT('Table1','Table1'[Flight]) on the tooltip chart

Steels_Cat_1-1645026740938.png

 

The logic here is that if i filtered "Scheduled" from Flights Service Type and last 6 months from this row data file should stay only the second row. The filter CountFlights has to show 1 instead of 2. CountFlight filter has to be same as TotalFlights number from the below chart. I tried to use summarized table but client wants to use drill thought, also and from summarized table I’m not able to use it 

 

Steels_Cat_2-1645026948022.png

 

 

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Steels_Cat ,

 

Only measures are dynamic, but measures cannot be used as slicers.

In general, we can create a parameter slicer and change the visual by dynamically passing parameters to measure.

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@Steels_Cat Columns do not update dynamically, only when the dataset is refreshed.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Yes, i know but for purpose of the report. I do not know how to call it, this "dynamic calculated column"

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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