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
RK_JOB
Helper II
Helper II

How to show a card

Hello,

 

I want to show a card which shows something like this:

 

Period 2021 - 01/01 - 12/31
Period 2022 - 01/01 - 11/30

 

Basically full year for last year but EOM last month for current year (that should be dynamic).

Nothing is getting selected on the slicer so I don't want to use selectedvalue.

I want it to be just like this (first line : full last year, second line: Starting from Jan 1 till EOM last month) . How should I approach this?

 

Thanks,

EZ

 

 

1 ACCEPTED SOLUTION
TomasAndersson
Solution Sage
Solution Sage

You can do something like this:

This year period = "Period " & year(today()) & " - 01/01 - " & month(EOMONTH(today(),-1)) & "/" & day(EOMONTH(today(),-1))

Last year period = "Period " & year(today())-1 & " - 01/01 - 12/31"

Create these two measures and add to a multi-row card or other suitable visuals.

View solution in original post

1 REPLY 1
TomasAndersson
Solution Sage
Solution Sage

You can do something like this:

This year period = "Period " & year(today()) & " - 01/01 - " & month(EOMONTH(today(),-1)) & "/" & day(EOMONTH(today(),-1))

Last year period = "Period " & year(today())-1 & " - 01/01 - 12/31"

Create these two measures and add to a multi-row card or other suitable visuals.

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.