cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Priya2007
Frequent Visitor

Measure total is wrong

Hi , 

I am trying to get measures as below;

 

Total Costs =

CALCULATE(
sum(Transactions[ACTUAL_AMOUNT]),
FILTER(Transactions,Transactions[Activity_code_Num]>=3000
&& Transactions[Activity_code_Num]<=3999),
 
FILTER(Transactions, NOT (Transactions[Expense_Code_Num]) IN {607,606} ))

Active Sales =
IF( SELECTEDVALUE('Calendar'[Financial Period Number]) >= SELECTEDVALUE(Transactions[FISCAL_PERIOD]),[Total Costs],0)
 
But when I am doing it in table ,  Iam getting below table with wrong total for active sales measure.
If anybody can help me to correct the total of active sales measure would be really helpful.

 

Capture.PNG

 

Thank you 

 

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@Priya2007 , Try a measure like

sumx(summarize(Table, Table[Product_no], Table[ResponsibilityCode], Table[Fiscal Period],"_1",IF( SELECTEDVALUE('Calendar'[Financial Period Number]) >= SELECTEDVALUE(Transactions[FISCAL_PERIOD]),[Total Costs],0)),[_1])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
amitchandak
Super User IV
Super User IV

@Priya2007 , Try a measure like

sumx(summarize(Table, Table[Product_no], Table[ResponsibilityCode], Table[Fiscal Period],"_1",IF( SELECTEDVALUE('Calendar'[Financial Period Number]) >= SELECTEDVALUE(Transactions[FISCAL_PERIOD]),[Total Costs],0)),[_1])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors