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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
prashantpattnai
Frequent Visitor

Export to Excel Not Working Properly for Measure with SAMEPERIODLASTYEAR

Hi All,

 

Greetings!

I have a measure as below. This works fine with a calendar date slicer. However, upon exporting to excel it shows 0% in all rows. Not sure if I'm missing anything here.

Previous Year Rate = CALCULATE([This Year Rate], SAMEPERIODLASTYEAR(CalendarDate[Date]) )

Report design specs:: Line Chart with Calendar Hierarchy (Year->Qtr->Month) in Axis, [This Year Rate] and [Previous Year Rate] measure in values.

Note: Both the measures are in % format.

 

Any help is appreciated.

 

Thanks.

 

 

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @prashantpattnai,

 

From your DAX, I see [This Year Rate] should be a measure also, how did you define this measure? Have you tried the export to data feature in Power BI desktop, is there the same issue happens? Can you share the sample data or .pbix file for us to test on our side?

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-qiuyu-msft Yes, both [This Year Rate] and [Previous Year Rate] are measures. I tried to export data from both Power BI desktop and service, both showing the same result in export. In chart [This Year Rate] and [Previous Year Rate] shows valid numbers but in export only [This Year Rate] shows the valid number and [Previous Year Rate] shows 0%.

 

Not sure if I can share the .pbix file as it has business sensitive information. Will update you on sharing .pbix file. How about to have a screen share if possible?

 

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors