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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Jilanisk29
Frequent Visitor

Last Year Finanacial Showing Blank

Hi Team,

I have implemented last year financial Logic and thats workong fine till last week, but all of  the sudden its showing the blank results can you please help me her.

Jilanisk29_0-1704610776776.png

I have attached the Pbix file also please check.

 

https://drive.google.com/file/d/1GpnxSzEFyz6ZqeKJH5w-2Xce_29J8qpR/view?usp=drive_link

 

Thanks.

1 ACCEPTED SOLUTION
v-xiandat-msft
Community Support
Community Support

Hi @Jilanisk29 ,

I looked at your pbix file, your AAW N Sales FYTD Main medium month is only valid for the current year.

The following DAX might work for you:

AAW N Sales FYTD Main = CALCULATE(
					[Sales] , 
					// FILTER(
					// 	tbl_Dim_Date,
					// 	// tbl_Dim_Date[Date] <= EOMONTH( TODAY (), -1 )
					// ),
					// // DATESYTD(tbl_Dim_Date[Date], "30/4" )
                    DATESBETWEEN ( tbl_Dim_Date[Date], 30/4, EOMONTH(TODAY (), -1))
                    )
AAW N Sales LYTD - CM = 
    CALCULATE (
        [AAW N Sales FYTD Main],
			SAMEPERIODLASTYEAR (
            INTERSECT (
                VALUES ( tbl_Dim_Date[Date] ),
                DATESBETWEEN ( tbl_Dim_Date[Date], 1/5, EOMONTH( TODAY (), -1 ) )
            ) 
        )
		
    )

The final output is shown in the following figure:

vxiandatmsft_0-1704781913314.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-xiandat-msft
Community Support
Community Support

Hi @Jilanisk29 ,

I looked at your pbix file, your AAW N Sales FYTD Main medium month is only valid for the current year.

The following DAX might work for you:

AAW N Sales FYTD Main = CALCULATE(
					[Sales] , 
					// FILTER(
					// 	tbl_Dim_Date,
					// 	// tbl_Dim_Date[Date] <= EOMONTH( TODAY (), -1 )
					// ),
					// // DATESYTD(tbl_Dim_Date[Date], "30/4" )
                    DATESBETWEEN ( tbl_Dim_Date[Date], 30/4, EOMONTH(TODAY (), -1))
                    )
AAW N Sales LYTD - CM = 
    CALCULATE (
        [AAW N Sales FYTD Main],
			SAMEPERIODLASTYEAR (
            INTERSECT (
                VALUES ( tbl_Dim_Date[Date] ),
                DATESBETWEEN ( tbl_Dim_Date[Date], 1/5, EOMONTH( TODAY (), -1 ) )
            ) 
        )
		
    )

The final output is shown in the following figure:

vxiandatmsft_0-1704781913314.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank You So mUch this is my Solution 🙂

Jilanisk29
Frequent Visitor

HI Team,

 

Here Our Financial Year Start with May 2023 to April 2024 (This is current year).

Lasy year Financial Year Start with May 2022 to April 2023 (This is last Fianacial year)

here i am calculating exactly mactiching with with current financial year date range except Current Month i.e (2022 May to 2022 Dec )

 

Thanks

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.