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

Adding Current Measure with Previous Measure In Power BI

 

Hi all

I am newbie to power Bi

 

Sales is a Calculated Measure.

 

My Requirement

 

Month             Sales            Required out put

Jan-23             200               200

Feb-23            300               200+300

March             400               200+300+400

 

Please let me know what could be dax for this. I have tried my way but was not successfull please guide

3 REPLIES 3
Manishaparmar19
Frequent Visitor

Hello @Anonymous, 

 

 

Try this,

Sales 1 = CALCULATE(
  SUM([Sales]),
  FILTER(
    ALL(Table_Name),
    Month <= MAX(Month)
  )
)
 
If this helps, mark my post as "Accepted Solution".
Thanks 
Anonymous
Not applicable

 

I did try the code provid the code provide by you ,Let me expain this way

 

We have a measure called **bleep** Inflows which calculates the Cumulative Inflow based on this formula


**bleep** Inflows (Crs) =
SUM('Fund Flow'[Subscription Money])/SELECTEDVALUE(DimAmountConversion[RangeValue],10000000).

I have attached a scree shot where u will have clear understanding of my requirement

We are a requirement of another measure with name **bleep** MOM

 

depends on date selection it will calculate

as per below scree shot

Jan-22=71.04

Feb 22=38.26+71.04

mar 22=8.75+38.26+71.04

date selected betweeb 3/31/22 and 5/31/22

please refer screen shot below

Smash1404_2-1687866397718.png

we have table called Date which contains column called Date

Hi @Anonymous 

 

Please try this measure. Hope it works!

**bleep** MOM =
SUMX (
    FILTER ( ALLSELECTED ( 'Date'[Date] ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ),
    [**bleep** Inflows (Crs)]
)

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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