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!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |