cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
allankwan
Frequent Visitor

converting excel formula to powerbi - table/column

I have a table in excel below whereby the available hours have this formula (=IF($G8<=AK$2,AK$4,IF(AND($G8>=AK$2,$G8<=AK$3),DAYS(AK$3,$G8),0))*24)

 G8 is the date which the asset starts operating so the available hours is calculated by taking the 1st day of the month and the last day of the month x 24 hours if the asset is already operating and if the asset starts operating in the middle of the month, it takes that date and the last day of the month x 24 hours.

 

How do i replicate this in powerbi?

 

Row1ColumnAKALAMAN
21-May-191-Jun-191-Jul-191-Aug-19
331-May-1930-Jun-1931-Jul-1931-Aug-19
4                31                30                31                31
5Available Hours
6MayJuneJulyAugust
7744720744744
8744720744744
9744720744744
10744720744744
11744720744744
3 REPLIES 3
allankwan
Frequent Visitor

I only have 2 columns for this in my table. Not sure if I would need more.

 

2 columns (Asset Name and Start Date).

Somehow I cannot attach the table

amitchandak
Super User IV
Super User IV

@allankwan , this data is not the correct format for power BI. Make sure data is in tabular format. Please provide the final table model in power bi



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.