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
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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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