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
Hello,
I need to add a simple card that gives the current day of the year (1 out of 365). I am deriving this column from a calander and everything seems to move smoothly until I add the field to the card and I end up with a count of the field or a sum. I think I need to create a measure that will filter the date table only to 'TODAY' so that I am returned the day of the year for that specific row.
I am not sure how I should structure this DAX formula, fairly new to the program.
Thank you!
Solved! Go to Solution.
Try this measure. I use a variable for TODAY to cut down on the ()
Day of Year = VAR TodayIs = TODAY() RETURN DATEDIFF( DATE ( YEAR (TodayIs) , 1 , 1) , TodayIs , DAY)
Try this measure. I use a variable for TODAY to cut down on the ()
Day of Year = VAR TodayIs = TODAY() RETURN DATEDIFF( DATE ( YEAR (TodayIs) , 1 , 1) , TodayIs , DAY)
It works! You're awesome
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 July 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
112 | |
69 | |
48 | |
43 |
User | Count |
---|---|
189 | |
87 | |
77 | |
74 | |
60 |