Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |