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.
Hi,
I have a date table that includes the Quarter (Q1 - Q4) based on the date field.
I want to create a conditional column that gives me a (1) if the date is in the current quarter, and a (0) if else.
How do I do this using DAX?
Solved! Go to Solution.
Hi @Anonymous
try column
Column =
if(
FORMAT('Table'[Date];"yyyy q") = FORMAT(today();"yyyy q");
1;
0
)
do not hesitate to give a kudo to useful posts and mark solutions as solution