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
kprasad
Frequent Visitor

KPI Visual does not work properly for new year dates.

Hi all,

 

I am working on a dashboard, in which I am trying to implement a KPI visual for current period vs previous period values. The visual works correct for the end date upto 31st December 2016. But when I change my end date to any date from january 2017 KPI visual starts me showing values from 1st january to the selected end date from january 2017.Here I am attaching the

screenshots from the test file.So can any one please help me to find any solution on this..??

Click to download test file


End date is of December 2016End date is of December 2016After selecting End date from january  2017After selecting End date from january 2017 

 

1 ACCEPTED SOLUTION
v-haibl-msft
Employee
Employee

@kprasad

 

That’s just how the KPI visual works. In your case, you can create following two measures to replace the Current sessions and Previous sessions.

 

Current = 
CALCULATE ( SUM ( Test[Current sessions] ), ALLSELECTED ( Test[Date] ) )
Previous = 
CALCULATE ( SUM ( Test[Previouse sessions] ), ALLSELECTED ( Test[Date] ) )

KPI Visual does not work properly for new year dates._1.jpg

 

Best Regards,

Herbert

View solution in original post

2 REPLIES 2
v-haibl-msft
Employee
Employee

@kprasad

 

That’s just how the KPI visual works. In your case, you can create following two measures to replace the Current sessions and Previous sessions.

 

Current = 
CALCULATE ( SUM ( Test[Current sessions] ), ALLSELECTED ( Test[Date] ) )
Previous = 
CALCULATE ( SUM ( Test[Previouse sessions] ), ALLSELECTED ( Test[Date] ) )

KPI Visual does not work properly for new year dates._1.jpg

 

Best Regards,

Herbert

@v-haibl-msft,

Thank you,For your solution. This trick worked for me.

Best Regards,

Prasad.

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