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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Calculated column using DAX

I have an excel sheet having some calculations.

 

The last column has calculations like:

=IF(L2<>L1,O2,IF(M2=0,IF(K2="CHECKOUT",P1+1,P1-1),P1))

=IF(L3<>L2,O3,IF(M3=0,IF(K3="CHECKOUT",P2+1,P2-1),P2))

=IF(L4<>L3,O4,IF(M4=0,IF(K4="CHECKOUT",P3+1,P3-1),P3))

=IF(L5<>L4,O5,IF(M5=0,IF(K5="CHECKOUT",P4+1,P4-1),P4))

and so on.........

 

I want to convert it and create a column in Power BI so that I can use the values for a Report.

I am unable to attach an excel sheet.

Kindly help on this.

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Could you please provide some fake data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.