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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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