Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I need to count number of Train # appear by date.
However, as there are 3 classes per train, if I use count the number of Train # will be multiplied by 3.
May I know how to use Measures to count Train # per day?
Thanks!
Solved! Go to Solution.
Hi ET2018,
To achieve your requirement, you can use DAX formula below:
Number of Train# Per day = CALCULATE(DISTINCTCOUNT(Table1[Train#]), ALLEXCEPT(Table1, Table1[Date]))
Regards,
Jimmy Tao
Hi ET2018,
To achieve your requirement, you can use DAX formula below:
Number of Train# Per day = CALCULATE(DISTINCTCOUNT(Table1[Train#]), ALLEXCEPT(Table1, Table1[Date]))
Regards,
Jimmy Tao
Thanks!
it works!
User | Count |
---|---|
73 | |
70 | |
38 | |
23 | |
23 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |