cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RekhaG Frequent Visitor
Frequent Visitor

PowerBI -MDX Cube - YTD

Hi,

 

I have a Power BI Report where the data points are month-year(from date dimension) and a YTD measure.

 

The source is a multi-dimensional SSAS cube. The YTD Measure and month-year are taken from this cube.

 

 

Screenshot1.jpgThe issue is( as seen in screenshot) when I select more than one year in the filter(of the date dimension), the YTD measure shows up as BLANK in the 'card' report and the total is blank in the 'table' report.  It shows the desired result only if one year is selected.

 

Any help is appreciated.

 

The MDX for the measure is

Sum
(
PeriodsToDate([Date].[Hierarchy].[Eff Year Num]),[Measures].[CountX]
)

3 REPLIES 3
Community Support Team
Community Support Team

Re: PowerBI -MDX Cube - YTD

Hi @RekhaG,

 

Create a TOTALYTD to workaround.

 

Measure = TOTALYTD(SUM(Table1[sales]),Table1[date])

 

 Capture.PNG

For more details, please check the pbix as attached.

 

Regards,

Frank

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

Re: PowerBI -MDX Cube - YTD

Thank you for your response @v-frfei-msft.

 

I am using a multi dimensional cube as the source for my report. I cannot use TOTALYTD(DAX) on it.

ChristianM83 Occasional Visitor
Occasional Visitor

Re: PowerBI -MDX Cube - YTD

Have you found the solution ?

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 193 members 2,191 guests
Please welcome our newest community members: