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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
ERICCFG
Frequent Visitor

Sage 300 date overlap problem.

Hello, I have a date overlap problem. I have an accounting entry table (sage 300) where there is a date column, fiscal year, period etc. In some cases the accounting entry date is the same for two periods and that means that when we want to do a filter by period and year in a calendar, we end up with false sums of expenses or income. Is there anyone who has had the same problem and how they resolved this situation.

1 ACCEPTED SOLUTION

thank you

 

I found the solution,

 

CALCULATE(
    SUM(GLACC[Valeur]),
    GLACC[Type] = "2-Dépense",
    TREATAS(VALUES(Calendrier[Période]), GLACC[Période]),
    TREATAS(VALUES(Calendrier[Année Fiscale]), GLACC[Année Fiscale]),
    ALL(Calendrier) -- Supprime le filtre sur la date
 
Thnank you for the people, they write me

View solution in original post

10 REPLIES 10
some_bih
Community Champion
Community Champion

Hi @ERICCFG it could be that you have standard calendar and fiscal calendar data at same time, or more complex two general ledgers - pure accounting and fiscal one. If yes, check link for usage and creation of fiscal calendar in Power BI.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Yes I use fiscal calendar

some_bih
Community Champion
Community Champion

Hi @ERICCFG on link you can find standard calendar creation and fiscal year too. It also showing a lot of examples with measures, like sales fiscal year (search fiscal)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






thank you

 

I found the solution,

 

CALCULATE(
    SUM(GLACC[Valeur]),
    GLACC[Type] = "2-Dépense",
    TREATAS(VALUES(Calendrier[Période]), GLACC[Période]),
    TREATAS(VALUES(Calendrier[Année Fiscale]), GLACC[Année Fiscale]),
    ALL(Calendrier) -- Supprime le filtre sur la date
 
Thnank you for the people, they write me
some_bih
Community Champion
Community Champion

Hi @ERICCFG great. If some of posts here helped you mark ita as solution, so other could see it.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






ERICCFG_0-1739540684095.png

 

some_bih
Community Champion
Community Champion

@ERICCFG I do not understand your pictures, not famičiar wit descriptions, column names.

I hope you have Calendar/ Date table in your pbi file? 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






ERICCFG_0-1739540459581.png

 

Anonymous
Not applicable

Hi @ERICCFG ,

Can you give some simple examples? It should be possible to come up with the correct result by modifying dax.

In some cases the accounting entry date is the same for two periods and that means that when we want to do a filter by period and year in a calendar

 

Rupak_bi
Super User
Super User

  • Hi @ERICCFG 
  • Please share sample table and elaborate the issue


Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.