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
Karenh
New Member

how setup the same period for previos period according the current period

HI Team 

 

I would like show a comparission between two years, but the current year is ultil Jul-23 but about the last year I have the complete year (Jan-22 to Dec-22), so when I try to see the comparission is not accurate because 2022 has 12 month and 2023 only 6, if you have any idea I appreacite it.

 

Many thanks PBI Community 🙂

1 ACCEPTED SOLUTION
v-tianyich-msft
Community Support
Community Support

Hi @Karenh,

 

Based on your description, I created simple samples and filtered the existing data by creating virtual schedules and slicers and you can check the results as follows:

vtianyichmsft_0-1698646626898.png

 

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

3 REPLIES 3
miTutorials
Super User
Super User

v-tianyich-msft
Community Support
Community Support

Hi @Karenh,

 

Based on your description, I created simple samples and filtered the existing data by creating virtual schedules and slicers and you can check the results as follows:

vtianyichmsft_0-1698646626898.png

 

 

Please feel free to correct me and provide more information if I have misunderstood you!

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

_Riya
New Member

Yearly Sales 2023 =
SUM(SalesTable[SalesAmount])

Yearly Sales 2022 =
SUMX(
FILTER(
SalesTable,
YEAR(SalesTable[Date]) = Year(Today())-1),
SalesTable[SalesAmount]
)

Annualized Sales 2023 = [Yearly Sales 2023] / 6 * 12

Comparison Sales = [Yearly Sales 2022] - [Annualized Sales 2023]

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.