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
Super User
Super User

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

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

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

 

@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

 

v-zhouwen-msft
Community Support
Community Support

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
Impactful Individual
Impactful Individual

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


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

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)