Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 38 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 105 | |
| 63 | |
| 36 | |
| 35 |