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
Yiling
Helper II
Helper II

Monthly KPI covert to daily cross join and relationship issue

Hi Experts,

 

I have a KPI model data imported from tabular 

only last day of each month has KPI value.

 

Yiling_1-1604264976284.png

 

this is my data relationship map

my unique key is date&servicenumber(combined)

 

Yiling_3-1604266104540.png

 

my goal is to use kpi indicator or other kpi visualization to show monthly actual kpi against kpi target.

 

for instance, i have a reliability KPI v actual reliability 

my reliability%  actual measure is =  ([First Departure]-[Services Cancelled])/[First Departure] (all data is from daily services)

 

I've tried import kpi wookbook into power bi, but didn't work, due to i set date range is always in the previous 365 days. 

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-import-and-display-kpis

 

I've also tried this method, didn't work, see in the screenshot, both table date format is the same dd/mm/yyyy

https://community.powerbi.com/t5/Desktop/Convert-monthly-data-to-daily/td-p/764130

 

Yiling_4-1604268991428.png

then my final table 

FinalTable = CALCULATETABLE(TableCross,filter(TableCross,TableCross[OPERATING_DATE].[Date]=TableCross[Calendar.Date].[Date]))

it looks my daily services operating date only shows the last day of each month

 
 

Capture.PNG

Would appreciate if anyone can help me on this.

 

here's my pbix file to test.

https://1drv.ms/u/s!AjpB2wk5YDY3hwcMerV8tWakwlVY?e=rh8Kjz

 

 

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Yiling , if you have monthly value, You can get that at the day level

 

new measure

KPi Value =CLOSINGBALANCEMONTH(Sum(Table[Value]),Date[Date])  //same value will repeat each day

 

KPi ValueDaily = Divide([KPi Value],day(eomonth(Date[Date],0)))

or
KPi ValueDaily = Divide([KPi Value],day(eomonth(max(Date[Date]),0)))

 

Also refer: https://community.powerbi.com/t5/Community-Blog/Distributing-Allocating-the-Yearly-Target-Convert-to...

https://www.youtube.com/watch?v=yPQ9UV37LOU

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Yiling , if you have monthly value, You can get that at the day level

 

new measure

KPi Value =CLOSINGBALANCEMONTH(Sum(Table[Value]),Date[Date])  //same value will repeat each day

 

KPi ValueDaily = Divide([KPi Value],day(eomonth(Date[Date],0)))

or
KPi ValueDaily = Divide([KPi Value],day(eomonth(max(Date[Date]),0)))

 

Also refer: https://community.powerbi.com/t5/Community-Blog/Distributing-Allocating-the-Yearly-Target-Convert-to...

https://www.youtube.com/watch?v=yPQ9UV37LOU

@amitchandak thank you it worked!

 

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.