The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Having issues getting this calcuation to work as expected
here is a basic look at my data
I'm trying to count the unique agent_id per date, then sum by week.
so for example the count of agent id's 11/-11/5 for the above data should be 15
I was trying this but not successful at getting the right number
Thanks Jay,
running into issues as I have a date table, which I populate weekending. going to have to try and rework this a bit and see if I can make it work
Hi @Anonymous ,
Refer:
count_ = calculate(distinctcount([agent_id]),allexcept('table',[date]))
sumbyweek = SUMX(FILTER(ALL('Table'),WEEKNUM([date])=weeknum(SELECTEDVALUE([date]))),[count_])
Best Regards,
Jay