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

Measure to show current year and previous year by category in a list view

Hi,

 

I have a dataset that has two years worth of data (Note Current Year start is 1/07/2022 and year end is 30/06/2023). My goal is to create a list visual with the columns Client Group, Previous Year Billings, Current Year Billings.

 

To achieve the Column Previous Year:

I first created the measure: Total Invoiced = SUMX(TGroupBillingTable,GroupBillingTable[Invoiced Amount])

I then used the above measure to create a new measure:

CALCULATE([Total Invoiced],SAMEPERIODLASTYEAR('Fiscal Year Table'[Date]))
However this does not work as when I pull in the measure into the visual it shows current year and last year.
 
Does anyone know how to achieve this?
1 REPLY 1
amitchandak
Super User
Super User

@saadat_rda , 'Fiscal Year Table' is a date table, marked as date table, Join is 1-M single directional

and in visual, measure, and slicer you are using a field from date table 

refer

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

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.