Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
i have a data base that contains a lot of ticket numbers with different status, i want to calculate these tickets numbers without counting the double tickets , here is below a screen capture to understand more.
normaly the result should be only : 2 tickets
Thanks for your help
Solved! Go to Solution.
Hi @ayoubb ,
Try this measure:
Measure = CALCULATE(DISTINCTCOUNT('Table'[N° demande de service]),ALLSELECTED('Table'))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ayoubb ,
Please try what @az38 said or this:
distinctcount_id =
SUMX (
ADDCOLUMNS (
DISTINCT ('Table'[demande] ),
"distinctcount", CALCULATE ( DISTINCTCOUNT ('Table'[demande]) )
),
[distinctcount]
)If this is not what you need,please show an example what the expected result would be.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your reply, however i tried the DAX that you provided me but shows me wrong data,
you see the table below, in the column "N° demande de service" i have tickets numbers which they're dublicated, i want a formula that count dublicated ticket for one time.
for example this column N° demande de service, if i calculate the ticket number the result should be: 3
Hi @ayoubb ,
Is this problem sloved?
If not, please let me know.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ayoubb ,
Try this measure:
Measure = CALCULATE(DISTINCTCOUNT('Table'[N° demande de service]),ALLSELECTED('Table'))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |