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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nankerp
Helper III
Helper III

July amount - Repeting in to the future

I want to make a measure that take the july sale and repeat it in to the future. I thougt it should be an easy case but I cant manage.

 

Her is my measure:

CALCULATE([Totalsalg - Juli];filter(factData;factData[Dato]>=date(2018;7;1)))

 

Her is how I dont want it and want it:

Dax- Problem.png

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

Here is the result i got.  You may downlod my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

 

Here is the result i got.  You may downlod my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you so much. It was more complicated than I thought it should be.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-shex-msft
Community Support
Community Support

Hi @nankerp,

 

I'm not so sure how measure 'total slag juli' calculated, please share sample data with measure formula to test.

BTW, nested measure not works properly if internal measure contains filters.

 

Reference links:

Order of Evaluation in CALCULATE Parameters

Optimizing DAX expressions involving multiple measures

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Her is the sourcedata.Dax2 problem.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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