March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
hi all ,
i have below data in daily basis recorded by each transaction in 1st table.
and 2nd table is the result i want.
Currently i use the formula of distinct count which means when i filter 3 months together we lost some customers due to the same customer code is not counted. but what we want is , Total Distinct Customers by Month and then when the user filter 3 months together , it will count total distinct customers by each month together.
i have master table of calendar and Master Data as relationship.
Solved! Go to Solution.
1) Create the distinct count measure:
Customer Distinct count =
DISTINCTCOUNT ( Table[Customer Code] )
2) Use this final measure:
Final count of Customers =
SUMX (
SUMMARIZE (
'Calendar Table',
'Calendar Table'[Month],
"@bymonth", [Customer Distinct count]
),
[@bymonth]
)
Proud to be a Super User!
Paul on Linkedin.
Hi, @Chanleakna123
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @Chanleakna123
Please check the below picture and the sample pbix file's link down below.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
1) Create the distinct count measure:
Customer Distinct count =
DISTINCTCOUNT ( Table[Customer Code] )
2) Use this final measure:
Final count of Customers =
SUMX (
SUMMARIZE (
'Calendar Table',
'Calendar Table'[Month],
"@bymonth", [Customer Distinct count]
),
[@bymonth]
)
Proud to be a Super User!
Paul on Linkedin.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |