-1

I am doing migration report from Qlik to PowerBI.

I am wondering how to change this Qlik function into PowerBi.

=Num(Count(distinct {1 <[Type]-='Other',SaleDate=P(MasterCalenderDate)> } [CustomerId]) , '###,###,####')

Any help ?

1
  • Could you pls provide some sample data and expected output? Commented Sep 11, 2024 at 0:05

1 Answer 1

0

I understood that you want to count distinct CustomerId where the type is different from 'Other' and where the SaleDate matches the MasterCalendarDate :

NumCustomers = 
FORMAT(
    COUNTROWS(
        FILTER(
            ALL(CustomerTable), 
            CustomerTable[Type] <> "Other" && 
            CustomerTable[SaleDate] IN VALUES(MasterCalendar[MasterCalendarDate])
        )
    ), 
    "###,###,####"
)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.