Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello all,
I was wondering if anyone could help with this error? I have a table as follows
From this I created a series of measures like this
Then I wanted to make a table visual to show me the %change of FPA month to month for each product. But the previous month shows as Blank (and I've tried changing data hierchy). See visual below. I think the % change doesn't work yet because of the previous month error. I don't know if this makes a difference but my Date is the 01st of every month from 2016 to 2022.
Any help would be really appreciated
Thank you
Scarlett
Solved! Go to Solution.
Hi,
If you do not have DIM-calendar table, one of ways to achieve this is to create a measure like below.
I tried to create a sample pbix file like below, and I hope the below can provide some ideas on how to create a solution for your datamodel.
Prior month value avg: =
CALCULATE (
[Value avg:],
'Table'[Attribute]
= MAXX (
FILTER (
ALLSELECTED ( 'Table'[Attribute] ),
'Table'[Attribute] < MAX ( 'Table'[Attribute] )
),
'Table'[Attribute]
)
)
Hi,
If you do not have DIM-calendar table, one of ways to achieve this is to create a measure like below.
I tried to create a sample pbix file like below, and I hope the below can provide some ideas on how to create a solution for your datamodel.
Prior month value avg: =
CALCULATE (
[Value avg:],
'Table'[Attribute]
= MAXX (
FILTER (
ALLSELECTED ( 'Table'[Attribute] ),
'Table'[Attribute] < MAX ( 'Table'[Attribute] )
),
'Table'[Attribute]
)
)
Thank you so much! This worked perfectly
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
27 | |
12 | |
12 | |
10 | |
6 |