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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
antonio_wurth
Helper I
Helper I

dax aas sum of other measure on date level

hi folks

need help with formula

i have inventory transaction table (income-outcome)

 

and in aas use 

movement_pcs:= sum('fact_transactions'[quantity])
 
and for inventory for date use:
 
inventory, pcs:=
VAR MaxDate = Max ('Calendar'[date_id])
VAR Result = 
    CALCULATE(
        [movement_pcs],
        'Calendar'[date_id]<= MaxDate,
        ALL('Calendar')
    )
 
return
    Result
 
 
question:
i need new measure which give me sum for each date in selected/active period
Mar 2025 -> sum of selected dates in march
Feb 2025 -> sum of selected dates in feb
Year 2025 level -> sum of Mar and Feb dates
 
antonio_wurth_1-1741891184718.png

 

 

thank you in advance

 

 


 

5 REPLIES 5
v-tsaipranay
Community Support
Community Support

Hi @antonio_wurth ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @antonio_wurth ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @antonio_wurth ,

Thank you for reaching out to the Microsoft Fabric Community.


I wanted to check if you had the opportunity to review the information provided by @Anonymous . Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

 

Anonymous
Not applicable

Hi  @antonio_wurth ,

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
DISTINCT('Table'[Month])

2. Create measure.

Measure =
var _select=SELECTCOLUMNS('Table 2',"test",[Month])
RETURN
IF(
    ISINSCOPE('Table'[Year]),SUM([inventory,pcs]),SUMX(FILTER(ALL('Table'),'Table'[Month] in _select),[inventory,pcs]))

3. Result:

vyangliumsft_0-1741930438044.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

antonio_wurth
Helper I
Helper I

dax aas sum of other measure on date level
6m ago

hi folks

need help with formula

i have inventory transaction table (income-outcome)

 

and in aas use 

movement_pcs:= sum('fact_transactions'[quantity])
 
and for inventory for date use:
 
inventory, pcs:=
VAR MaxDate = Max ('Calendar'[date_id])
VAR Result = 
    CALCULATE(
        [movement_pcs],
        'Calendar'[date_id]<= MaxDate,
        ALL('Calendar')
    )
 
return
    Result
 
 
question:
i need new measure which give me sum for each date in selected/active period
Mar 2025 -> sum of selected dates in march
Feb 2025 -> sum of selected dates in feb
Year 2025 level -> sum of Mar and Feb dates
 
antonio_wurth_1-1741891897733.png

 


 

 

 

thank you in advance

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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