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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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!:
Mastering Power BI 2nd Edition

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.