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

Issues using measure in a summarize

Hello All,

 

I use the below dax to calculate monthly P&L €, which is the difference between currant month's unrealized P&L and previous month:

 

P&L € = CALCULATE(SUM('Unrealized P&L per Month'[Unrealized P&L €]),DATESMTD('Unrealized P&L per Month'[TIME]))-CALCULATE(SUM('Unrealized P&L per Month'[Unrealized P&L €]),PARALLELPERIOD('Unrealized P&L per Month'[TIME].[Date],-1,MONTH))

 

. Capture1.PNGCapture2.PNG

 

After that, I use a new dax to take a new table with the below: 

Monthly Figures Unrealized 2 = SUMMARIZE('Unrealized P&L per Month','Unrealized P&L per Month'[MT4 ID],'Unrealized P&L per Month'[TIME],"Position ID",0,"Symbol","Other","Comment**","Other","P&L €",'Unrealized P&L per Month'[P&L €],"Commission €",0,"Swaps €",0,"Volume $",0,"Deposits €",0,"Withdrawals €",0,"Net Credits €",0)

 

Capture3.PNGCapture4.PNG

 

The new table's figures are different. Doesn't working the measure after the use of summarize dax? How can I overcome this? 

 

Any ideas are welcome. 

 

Thank you guys and have a great new year. 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may take a good look at the Remarks and Articles.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may take a good look at the Remarks and Articles.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Am I crazy or are both sets of figures identical? Which one is different??


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Total P&L € in first table is 25.75m while in second table, total P&L € is -36.36m.

@Anonymous,

 

Use SUMMARIZECOLUMNS instead.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.