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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sraj
Responsive Resident
Responsive Resident

Filter from a specific line in the measure

Hi everyone,

 

Need help, this measure that I have needs to include a filter, but I want that just for the last line “real_prj_held_cnt_i” to filter from this column 'status mrkt'[sch_state] IN { "I" } , { "F" }, { "U" }

 

How can I add it to this measure?

 

Measure

Settled Count =

 CALCULATE(MAX('status mrkt'[rp_protest_cnt])

 - MAX('status mrkt'[rp_bad_protest_cnt])

 - MAX('status mrkt'[real_held_cnt])

 - MAX('status mrkt'[real_prj_held_cnt_i] ) )

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Settled Count =
var a = MAX('status mrkt'[rp_protest_cnt])
 - MAX('status mrkt'[rp_bad_protest_cnt])
 - MAX('status mrkt'[real_held_cnt])
var b = if('status mrkt'[sch_state] IN {"I","F","U"},MAX('status mrkt'[real_prj_held_cnt_i],0)
return a-b

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Settled Count =
var a = MAX('status mrkt'[rp_protest_cnt])
 - MAX('status mrkt'[rp_bad_protest_cnt])
 - MAX('status mrkt'[real_held_cnt])
var b = if('status mrkt'[sch_state] IN {"I","F","U"},MAX('status mrkt'[real_prj_held_cnt_i],0)
return a-b

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.