Aging Bucket - Measure on the fact table

This has been a bit of a trial.
I have a slicer to give me the date of the end of the month on the report

The user can select the end of the month from the slicer

Then I need to look at the fact Table and work out for each row the number of days between the invoice date (on the fact table) and the end of month from the slicer. This Provides me with a measure NumberOfDays on The fact Table

Then I can create a Measure AgeBand on the fact table that is a measure that create bands of 5 days based on NumberOfDays.

Now the problem comes when I want to present this in a chart.

  1. The doughnut chart (everyone loves a doughnut) does not allow a measure to be used on the legend.
  2. As NumberOfDays and AgeBand are dynamic when you look at them at a total level the calculation gets a little weird.

This is different from most Aging Buckets / banding reports I have seen as they are normally static and the calculation can be done in a calculated column on the fact table rather than a measure.

Any suggestions for this I will try and replicate in a small report and publish.
Thanks
E

for Item #1 consider a disconnected table to use for the visual - see this post for an example of how this can be done:

for item #2 you can update your measure to use a trick that removes the totals, one popular choice is to include HASONEVALUE in the measure:

1 Like

@Heather
Thanks for that. Just worked through #2 and works a treat.

Thanks
E

1 Like

happy to help :slight_smile: