Forum Discussion
Count Distinct where sum is
- 6 years ago
Thanks for your suggestions all but strangely none worked with my dataset. I'm not sure if it's the size of the dataset or the fact that it is running through a direct query causing the issue.
To get around it I created an additional table from the main query using a combination of the CALCULATETABLE, SUMMARIZE and FILTER functions and put a count card visual pulling data from new table.
I have expanded the example table so that it is more in line with my dataset, apologies if it was unclear.
Thanks for the response but your formula does't seem to work for the updated table
- V-lianl-msft6 years agoCommunity Support
Hi BI-Bola ,
After my test, I can get the expected results.
If my understanding is wrong, please share the result you expect.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- Anonymous6 years agoNot applicable
Hi BI-Bola
Heve you tried the solution which i suggested.
measure= Sumx(summerize(table,table[sagement],"Total",sum(table[Amount])),If(Total>0,1,0))
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos. - Tan_Bui6 years agoNew Member
Thanks a lot. I have tried this for my case with conditional distinct count and it worked 🙂
- Anonymous6 years agoNot applicable
If this resolves your solution mark it as a solution so that it will help others and don't hesitate to give kudos.
Thanks,
Pravin