cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver III
Resolver III

Re: Help with Column Calculation

You can do this with a second 'disconnected' date table and a filter that controls just the backlog calculation time. Unfortunately it's not very elegant, because it means you need two date filters on screen at once (once to control the backlog calc and one to control the dates displayed on the table).

 

Perhaps there is a better way, but I can't think of one right now...

 

In the meantime:

 

  1. add a second calendar table to your .pbix file (i have called it "Calendar (2)" below). 
  2. make sure it has no relationships to any other tables
  3. Add this measure (or replace your existing Backlog measure):
Backlog 2 = CALCULATE([Net Count], 
			FILTER(ALL('Calendar'), 
				'Calendar'[Dates] <= MAX('Calendar'[Dates]) 
				&& 'Calendar'[Dates] >= MIN('Calendar (2)'[Dates])
				))

Then add a new 'Calendar (2)'[Dates] slicer.  The smallest date in that slicer will be used as the starting date for the backlog calcs.

 

Regards,

 

Mal

 

Highlighted
Helper III
Helper III

Re: Help with Column Calculation

Thanks again @MalS for your help.

 

I looked into my options a bit more and discovered that, if I changed FILTER(ALL()) to FILTER(ALLSELECTED()) then my date filter will work

 

Backlog = CALCULATE([Net Count], 
	Filter (ALLSELECTED('Calendar'), 'Calendar'[Dates] <= MAX('Calendar'[Dates])))

 

 

Highlighted
Resolver III
Resolver III

Re: Help with Column Calculation

Excellent - that's much better than my suggestion. 

 

I had tried adding ALLSELECTED to the measure too, but couldn't get it to work - so thought it wasn't possible.. Guess I messed up the syntax somehow...

 

Anyway, thanks for letting me know about your solution.

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors