Use of the if function in the power query.

deniztopcu

New Member
Joined
May 9, 2022
Messages
33
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
Hello everyone


I can easily separate quarterly balance sheets by quarter in excel.
Is it possible to do this in a power query? Please help if possible.


1685720399276.png



1685720284519.png
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Is it possible to do this in a power query? Please help if possible.

I am sure the Power Query experts on the board would be willing to help. However, it would be great if you could provide some sample data (not real data, of course - even if the data in the above screenshots does not contain any reference to a company or person, someone who knows you personally can relate balance sheets to the real life) instead of attaching a workbook especially if it contains macro since nobody prefers to open a macro workbook downloaded from the Internet. Besides, the service where you uploaded your file requires membership to download it.
 
Upvote 0
I am sure the Power Query experts on the board would be willing to help. However, it would be great if you could provide some sample data (not real data, of course - even if the data in the above screenshots does not contain any reference to a company or person, someone who knows you personally can relate balance sheets to the real life) instead of attaching a workbook especially if it contains macro since nobody prefers to open a macro workbook downloaded from the Internet. Besides, the service where you uploaded your file requires membership to download it.
Hello,

I checked, there is no macro software in my file.company balance sheetIt's okay as its data is public information. I hope the Power query experts can help if there is a solution.
thank you very much
 
Upvote 0
I would:
Unpivot those year/month columns
Add a suffix /02
Convert to date
Extract/Transform to quarter and year
Combine those columns
Pivot these columns in a standard pivot. ( Prefer that over doping a pivot in PQ)
 
Upvote 0
I would:
Unpivot those year/month columns
Add a suffix /02
Convert to date
Extract/Transform to quarter and year
Combine those columns
Pivot these columns in a standard pivot. ( Prefer that over doping a pivot in PQ)
Thank you but unfortunately I did not understand what you wrote and
I also realized that I was asking the wrong question.
By creating new columns. Some lines are processed with an "if function", while others are not.
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,628
Members
449,240
Latest member
lynnfromHGT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top