Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
Samkar78
Helper I
Helper I

Get the total number of days per year in a Summarize Table

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...)

Samkar78_0-1717002275925.png

 

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 ?

1 ACCEPTED SOLUTION
Samkar78
Helper I
Helper I

I think I randomly found the solution using ALLEXCEPT

Samkar78_0-1717003554315.png

 



View solution in original post

2 REPLIES 2
Samkar78
Helper I
Helper I

I think I randomly found the solution using ALLEXCEPT

Samkar78_0-1717003554315.png

 



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

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.