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
Anonymous
Not applicable

KPI card - multiple period (years)

Hi everyone,

 

First time poster, long time viewer.

 

Is it possible for a KPI card to compare actual vs plan across two years (i.e. 24 months)?

 

When I select both years in the filter, only 2020 appears.2019-09-23_1336.png

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi dever2018,

Below is my design

377.PNG

You could create another table like below

Table 3 = UNION (
      
    VALUES ( t6[date].[Year] ),
   
    ROW ( "subname", "TOTAL" )
)

Then use this in KPI

378.PNG

Best Regards,
Zoe Zhi

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

4 REPLIES 4
dax
Community Support
Community Support

Hi dever2018,

Below is my design

377.PNG

You could create another table like below

Table 3 = UNION (
      
    VALUES ( t6[date].[Year] ),
   
    ROW ( "subname", "TOTAL" )
)

Then use this in KPI

378.PNG

Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

Thanks so much @dax ! I created a new column = 1 and insered to the Trend axis. It worked a treat!

 

 

 

 

sturlaws
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

have you considered handling it with a measure?

Revenue =
CALCULATE (
    SUM ( Table[RevenueCol] );
    FILTER (
        ALL ( date );
        year <= SELECTEDVALUE ( year )
            && year
                >= SELECTEDVALUE ( year ) - 1
    )
)
Anonymous
Not applicable

Will give it a go - appreciate the prompt response!

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.