Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Good day everyone,
I'm a beginner to DAX and need assistance. I have a list of customers that have made sales, and I'd like to know the total number of customers who have not made sales during the specified time frame.
I'm also open to suggestions for the proper name for this subject 😅 When you view this post, I appreciate all of your help 😊
Thank you.
Test File - https://drive.google.com/file/d/1kbQsdWT47QYGqnHOemsU040vrYcETNM1/view?usp=drive_link
Solved! Go to Solution.
Hi @elemesey ,
I suggest you to try code as below.
Count of Customer no sales =
VAR _COUNTBYREGION =
SUMMARIZE (
Sales,
Sales[Region],
"COUNTBYREGION",
CALCULATE (
DISTINCTCOUNT ( Allcustomer[Customer] ),
ALLEXCEPT ( Allcustomer, Sales[Region] )
)
)
RETURN
SUMX ( _COUNTBYREGION, [COUNTBYREGION] )
- CALCULATE ( DISTINCTCOUNT ( Allcustomer[Customer] ) )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
write what result you want to see
Hi @elemesey ,
I suggest you to try code as below.
Count of Customer no sales =
VAR _COUNTBYREGION =
SUMMARIZE (
Sales,
Sales[Region],
"COUNTBYREGION",
CALCULATE (
DISTINCTCOUNT ( Allcustomer[Customer] ),
ALLEXCEPT ( Allcustomer, Sales[Region] )
)
)
RETURN
SUMX ( _COUNTBYREGION, [COUNTBYREGION] )
- CALCULATE ( DISTINCTCOUNT ( Allcustomer[Customer] ) )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous,
It works fantastic, thank you very much! 😊
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
55 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |