Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.