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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
PaulNearney
Frequent Visitor

Use measures and their SAMEPERIODLASTYEAR calculations in a table

I am calculating some simple measures using SUM, and also using SAMEPERIODLAST YEAR. e.g.

 

Billed = SUM(Bill[BilledAmount])
BilledLY = CALCULATE([Billed], SAMEPERIODLASTYEAR(Dates[Date]))

Written off = SUM(Bill[WriteOffAmount])
WrittenoffLY = CALCULATE([Written off], SAMEPERIODLASTYEAR(Dates[Date]))

Year = Min(Dates[Year])
YearLY = FORMAT([Year]-1, "General number")

I need to be able to get these into a table shape, so that I can display the values as a table, and also hook it up to other visualizations. For example, use a table visualization to produce:

 

Year | Billed | Written Off 
---------------------------
2019 | 12345  | 1234            -- year, billed, written off
---------------------------
2018 | 23456  | 2345            -- YearLY, BilledLY, WrittenOffLY

Seems like this should be fairly straightforward, but I'm just not seeing it. 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @PaulNearney,

 

You should drag the [Date] column from 'Dates' table into Table visual, rather than the calculated column [Year].

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @PaulNearney,

 

You should drag the [Date] column from 'Dates' table into Table visual, rather than the calculated column [Year].

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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