The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a table with entry_time, PhysicianID and SalesRep.
Im trying to see the count of PhysicianID from physicians that were users in the previous quarter and this quarter (Q2, Q3).
**Confidential info so can't provide screenshot of data. entry_time, PhysicianID and SalesRep are exact column names.
Solved! Go to Solution.
Hi @asandor ,
Please create a date table: Calendar = CALENDAR( DATE ( 2021, 9, 1 ), TODAY () )
Then create these measures.
Q2 =
CALCULATE (
COUNT ( 'Table'[PhysicianID] ),
DATEADD ( DATESQTD ( 'Calendar'[Date] ), -1, QUARTER )
)
Q3 =
CALCULATE ( COUNT ( 'Table'[PhysicianID] ), DATESQTD ( 'Calendar'[Date] ) )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @asandor ,
Please create a date table: Calendar = CALENDAR( DATE ( 2021, 9, 1 ), TODAY () )
Then create these measures.
Q2 =
CALCULATE (
COUNT ( 'Table'[PhysicianID] ),
DATEADD ( DATESQTD ( 'Calendar'[Date] ), -1, QUARTER )
)
Q3 =
CALCULATE ( COUNT ( 'Table'[PhysicianID] ), DATESQTD ( 'Calendar'[Date] ) )
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@asandor , check if customer repeat logic can be applied in your case. Use datesqtd in place of datesmtd
Customer Retention Part 1:
https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
80 | |
75 | |
52 | |
50 |
User | Count |
---|---|
133 | |
124 | |
78 | |
64 | |
61 |