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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
smeg
Helper I
Helper I

how to get YAGO data

I have a Metrics_Table with below data, having Agg_level  data for current year and last year as well with one day difference shown in red,green marked.For example (6/18/2023 and 6/17/2023.),(3/25/2023 and 3/26/2022),...  Also AO_Dates are not continuous the data is usually loaded weekly like 6/10/2023, then 6/17/2023,...

 

smeg_0-1689115252812.png

 

I am trying to get sum of dollars for yearago as  aggregate level and AO_date will be passed as pagelevel filter by user dynamically  and look at the dollars for those filters  year ago.

 

smeg_2-1689116533790.png

 

For example if they select AO_Date=6/17/2023 and Agglevel=12 then Dollarsyago should be $48.05+$11.9+$6.49(which is data as of  6/18/2022 as shown in below table)

smeg_3-1689117490552.png

 

 

is there a way to calculate year ago dollars so that AO_date and Agg_level can be passed dynamically .

I tried doing using below measure but it did not work.It is giving sum of dollars  for the whole table but i need it dynamically when user passes AO_Date and Agg_Level.

Dollars,YAgo = CALCULATE(SUM(Metrics_Table[$]),PARALLELPERIOD(Metrics_Table[AO_Date],-1,YEAR))
 
Can some one please help?
Thanks..

 

0 REPLIES 0

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors