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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |