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
Johan
Advocate II
Advocate II

accumulated value not shown if there is no entry in the month

Hi,

 

I have this dax formula to accumulate the value over time periods:

 

amount accum. = calculate(sum(fact[amount]), filter(all(periods);Periods[Period] <= max(Periods[Period])))

 

it calculates correctly, but if I put it in a matrix table it does not show a value if there is no entry in the period.

So, it shows like this:

 

Account 201701 201702 201703 201704 Total
1          500           800   1000   1000
2         1000   1200          1800   1800
3          600    700                  700
Ttl       2000   2300   2700   3500   3500

 

How to get a value in each cell, also for periods where there is no entry on the account?

 

 

Thanks,

Johan

1 ACCEPTED SOLUTION

I understand the method you're using. Dates would be better then period numbers.

Still for the accumulated (running total) function it should not differ whether it's a date or any sequential number.

 

I've been playing around with an extreme simple example and found out it has to do with the relationship type. If I set it to both it only shows the numbers in the period / months with entries, if I put it to single it sets the value in all periods. I've no clue why, not sure if it's a bug or feature. 

 

pbi test running total.jpg

View solution in original post

15 REPLIES 15

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.