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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Solution Specialist
Solution Specialist

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


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

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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