Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi dear community,
I have a problem here and would love your help.
I have two tables. A customer table and a sales table.
Ex Customer:
Clinet ID | Creation Date |
1 | 01/01/2021 |
2 | 01/02/2021 |
3 | 01/03/2021 |
Sales:
Sales ID | Client ID | Date |
1 | 1 | 01/04/2021 |
2 | 2 | 01/04/2021 |
3 | 2 | 01/04/2021 |
Pretended result: Barchart with two filters: client creation date and sale date
customers without purchases: 1
customers with 1 purchase: 1
customers with 2 or more purchases: 1
Thank you very much,
Simao
Solved! Go to Solution.
@Anonymous , Create measures like
Total sales = Count(Sales[Sales ID])
No purchase = countx(values(Customer[client ID]) , if(isblank([Total Sales]),[client ID],blank()))
1 purchase = countx(values(Customer[client ID]) , if([Total Sales]=1,[client ID],blank()))
2 or more purchase = countx(values(Customer[client ID]) , if([Total Sales]>=2,[client ID],blank()))
@Anonymous , Create measures like
Total sales = Count(Sales[Sales ID])
No purchase = countx(values(Customer[client ID]) , if(isblank([Total Sales]),[client ID],blank()))
1 purchase = countx(values(Customer[client ID]) , if([Total Sales]=1,[client ID],blank()))
2 or more purchase = countx(values(Customer[client ID]) , if([Total Sales]>=2,[client ID],blank()))
Thank you very much.
It worked perfectly!
Cheers,
Simão
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |