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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ROG
Responsive Resident
Responsive Resident

DAX measure with filter not working.

Hi guys,

 

I want to show on my report, the number of customers that have only used data, and not voice, neither SMS.

The 1st measure, gives me the Number of customer that used data, but might have also used voice and sms.

The 2nd measure I tried to show only the customer who used data. No sms, and no voice. But I'm getting the exactly same result, and not really sure what I'm missing. Can you please help?

 

No of Customers (Data Usage) = CALCULATE(DISTINCTCOUNT(FA_PROFIT_LOSS[SUBSCRIBER_SR_KEY]), FA_PROFIT_LOSS[DATA_VOLUME] <> 0 && NOT(ISBLANK(FA_PROFIT_LOSS[DATA_VOLUME])))

 

No ofCustomers (Data Usage-ONLY) = CALCULATE(DISTINCTCOUNT(FA_PROFIT_LOSS[SUBSCRIBER_SR_KEY]), FA_PROFIT_LOSS[DATA_VOLUME] <> 0 && NOT(ISBLANK(FA_PROFIT_LOSS[DATA_VOLUME]) && FA_PROFIT_LOSS[CALL_DURATION] = 0 && FA_PROFIT_LOSS[SMS] = 0 ))
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @ROG 
It is just a bracket order issue. Please try

No ofCustomers (Data Usage-ONLY) =
CALCULATE (
    DISTINCTCOUNT ( FA_PROFIT_LOSS[SUBSCRIBER_SR_KEY] ),
    FA_PROFIT_LOSS[DATA_VOLUME] <> 0
        && NOT ( ISBLANK ( FA_PROFIT_LOSS[DATA_VOLUME] ) )
            && FA_PROFIT_LOSS[CALL_DURATION] = 0
            && FA_PROFIT_LOSS[SMS] = 0
)

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @ROG 

 

You can try the following formula.

No of Customers (Data Usage) =
CALCULATE (
    DISTINCTCOUNT ( FA_PROFIT_LOSS[SUBSCRIBER_SR_KEY] ),
    FILTER (
        ALL ( FA_PROFIT_LOSS ),
        FA_PROFIT_LOSS[DATA_VOLUME] <> 0
            && NOT ( ISBLANK ( FA_PROFIT_LOSS[DATA_VOLUME] ) )
    )
)

and

No ofCustomers (Data Usage-ONLY) =
CALCULATE (
    DISTINCTCOUNT ( FA_PROFIT_LOSS[SUBSCRIBER_SR_KEY] ),
    FILTER (
        ALL ( FA_PROFIT_LOSS ),
        FA_PROFIT_LOSS[DATA_VOLUME] <> 0
            && NOT (
                ISBLANK ( FA_PROFIT_LOSS[DATA_VOLUME] )
                    && FA_PROFIT_LOSS[CALL_DURATION] = 0
                    && FA_PROFIT_LOSS[SMS] = 0
            )
    )
)

If it doesn't solve your problem, can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

 

Best Regards,

Community Support Team _Charlotte

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

tamerj1
Super User
Super User

Hi @ROG 
It is just a bracket order issue. Please try

No ofCustomers (Data Usage-ONLY) =
CALCULATE (
    DISTINCTCOUNT ( FA_PROFIT_LOSS[SUBSCRIBER_SR_KEY] ),
    FA_PROFIT_LOSS[DATA_VOLUME] <> 0
        && NOT ( ISBLANK ( FA_PROFIT_LOSS[DATA_VOLUME] ) )
            && FA_PROFIT_LOSS[CALL_DURATION] = 0
            && FA_PROFIT_LOSS[SMS] = 0
)
ROG
Responsive Resident
Responsive Resident

Thank you @tamerj1 

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