cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
saurabhsharma19
Helper I
Helper I

calculated field

 

Need help on calc field per company as buy and sell are 2 diff rows. They need to be net off to get the profit from the transaction done that day... hope somewat clear

 

 

 

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @saurabhsharma19 ,

 

Can you please explain a little bit better what is the expected result?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

Hi @saurabhsharma19 ,

 

If you use a matrix visualization and place the Trans column in the columns you get the expected result:

 

This depends on how you want to setup everything but then making some measures you can have the results has you need.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
rsbin
Super User
Super User

@saurabhsharma19,

If I understand correctly, your first step in PowerQuery is to Pivot your "Trans" column.

This should create two new fields "Buy" and "Sell".

Then you can create Measures from these.

Hope this gets you pointed in the right direction.

Ailsa-msft
Community Support
Community Support

Hi @saurabhsharma19 

Your description is not very clear. What are your needs ? What kind of effect do you want to achieve ? Can it be reflected in the form of pictures or data, if possible, please provide your pbix file (remove private information) .

 

Best Regard

Community Support Team _ Ailsa Tao

let me try again - am trying to get a summary say as pivot in excel of buy and sell trnsctions a day over few days. sheet 'b s indiv' is the base data

https://1drv.ms/u/s!ApFc

Thnx in advance

Hi @saurabhsharma19 ,

 

If you use a matrix visualization and place the Trans column in the columns you get the expected result:

 

This depends on how you want to setup everything but then making some measures you can have the results has you need.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @saurabhsharma19 ,

 

Can you please explain a little bit better what is the expected result?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors