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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
dw700d
Post Patron
Post Patron

Filter a measure with another measure

I Have a measure that calculates the total count of circuits when expense does not = 0 and the max month is 202212 and the min month is 202201 as shown below.

I would like to add an additional filter based on a separate measure I created called profitability. The last filter would say "if Profitability is greater than 0" . How can I add this last part to my measure?

 

 

CALCULATE(DISTINCTCOUNT('ckt_list'[Circuit #]),

FILTER('ckt_list','ckt_list'[Expense]<>0),

FILTER('ckt_list','ckt_list'[max_month]="202212"),

FILTER('ckt_list','ckt_list'[min_month]="202201")

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

My Measure =
CALCULATE (
    DISTINCTCOUNT ( 'ckt_list'[Circuit #] ),
    FILTER (
        'ckt_list',
        'ckt_list'[Expense] <> 0
            && 'ckt_list'[max_month] = "202212"
            && 'ckt_list'[min_month] = "202201"
            && [Profitability] > 0
    )
)

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Try

My Measure =
CALCULATE (
    DISTINCTCOUNT ( 'ckt_list'[Circuit #] ),
    FILTER (
        'ckt_list',
        'ckt_list'[Expense] <> 0
            && 'ckt_list'[max_month] = "202212"
            && 'ckt_list'[min_month] = "202201"
            && [Profitability] > 0
    )
)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors