March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I try to get the total numbers of days in a table created with a summarize function to have the correct average per day in a year.
For now I hard codded / 365 . but it is not accurate with Bisextile year (2020 ,2024...)
I have a fact table V_ETP_TAXE_TRANSPORT_DETAIL, and a calendar table REF_CALENDRIER linked to it.
I only achieved to get the number of days linked to the detail of that table per Year (NU_ANNE) per company (CD_SOCIETE) and per area (LB_COMMUNAUTE)
or to get total number of days of my calendar table.
What function should I use to get 365 or 366 depending on the year on each row ?
Solved! Go to Solution.
I think I randomly found the solution using ALLEXCEPT
Hi @Samkar78 ,
Congratulations on finding the answer you needed through your own efforts.
I researched your problem and found that the ALLEXCEPT function can indeed be used to solve your problem. Again, congratulations on solving your problem!
Best Regards
Yilong Zhou
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |