The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table that looks like this:
What I am wanting to to do is to create a new table that will Count the number of tokens where last_Updated_utc is in the current month and the value is 2.0 Qualify. I want this grouped by sales rep. If there is nothing to count I still want it to return zero for that rep.
It would look a bit like this:
Thanks, please feel free to ask any questions!
Solved! Go to Solution.
Hi @mhgottsc ,
Do you want to create a virtual table like the following.
create_table =
SELECTCOLUMNS (
'Table',
"Sales", 'Table'[Sales],
"count",
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Sales])
)
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mhgottsc ,
Do you want to create a virtual table like the following.
create_table =
SELECTCOLUMNS (
'Table',
"Sales", 'Table'[Sales],
"count",
CALCULATE (
COUNTROWS ( 'Table' ),
ALLEXCEPT ( 'Table', 'Table'[Sales])
)
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That is standard Power BI functionality - even without code. What have you tried and where are you stuck?