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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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

 

Anonymous
Not applicable

2 columns (Asset Name and Start Date).

Somehow I cannot attach the table

amitchandak
Super User
Super User

@Anonymous , 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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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