Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello!
I'm trying to create a calcualted field to verify, if there was a Stage change between report date and previous report date based on opportunity number. Close date is not involved in this measure. Report dates are in the same column.
I have tryed many different options, but till now without any success 😞
Data looks like this:
In written words it would be so: If between report from t and t-1 was a STAGE change, then give TRUE, else FALSE.
Main report is linked to second table, which defines stage order and some segmentation, and stage order can be used as a numerical value for calculated field.
I do not wish to merge tables, nor pivot the main table, as it would affect other report measures and whole structure.
What I would like to see in the end:
Or better 1 and 0 instead of True and False.
I attach a sample pbix.
Thanks a lot in advance!
Hi @grechill ,
Here is my PBIX PBIX FILE , sorry didn't see yours. So, I would note that the True meets the criteria of a change between current date, and the next older date.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Change = VAR _curDate = MyTable[Report Date] VAR _curStage = MyTable[Stage] VAR _calc = CALCULATE ( IF ( MAX ( MyTable[Stage] ) <> _curStage, "True", "False" ), FILTER ( ALLEXCEPT ( MyTable, MyTable[Opportunity Number] ), MyTable[Report Date] < _curDate ) ) RETURN _calc
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |