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.
Hello everybody,
I would like to have the previous values (see screenshot) displayed for the "ChangeWeek" column. So there should be a new column (see screenshot "new"), where the previous value per group (ISIN) is always displayed. It is important that it is a column, not a measure. I already got a solution in another post (https://community.powerbi.com/t5/Desktop/Get-weekly-values-and-previous-values/m-p/927847/highlight/...), but it's a measure there and not a column. Does anyone have a solution?
PBI File: https://we.tl/t-wYhdl5R56e
Best regards, hwoehler
(Screenshot)
Solved! Go to Solution.
Try , as new columns
Column = maxx(filter('Table','Table'[ISIN]=EARLIER('Table'[ISIN]) && not(ISBLANK('Table'[ChangeWeek])) && 'Table'[Date]<EARLIER('Table'[Date])),'Table'[Date])
Column 2 = if(ISBLANK('Table'[ChangeWeek]),BLANK(),maxx(FILTER('Table','Table'[ISIN]=EARLIER('Table'[ISIN]) && ('Table'[Date])=EARLIER('Table'[Column])),('Table'[ChangeWeek])))
https://www.dropbox.com/s/kexca62xapy8j41/Filter2.pbix?dl=0
@hwoehler , can ypu let us know the logic of last column. Not very clear from the example
Hi @amitchandak ,
you're right. The screenshot is misleading. This screenshot should be better:
The column "new" consists of (always) the previous value. (based on column "ChangeWeek".
Best regards, hwoehler
Try , as new columns
Column = maxx(filter('Table','Table'[ISIN]=EARLIER('Table'[ISIN]) && not(ISBLANK('Table'[ChangeWeek])) && 'Table'[Date]<EARLIER('Table'[Date])),'Table'[Date])
Column 2 = if(ISBLANK('Table'[ChangeWeek]),BLANK(),maxx(FILTER('Table','Table'[ISIN]=EARLIER('Table'[ISIN]) && ('Table'[Date])=EARLIER('Table'[Column])),('Table'[ChangeWeek])))
https://www.dropbox.com/s/kexca62xapy8j41/Filter2.pbix?dl=0
Yep, EARLIER.
So generally you are going to do this with something like EARLIER - See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395.... What is the measure calculation that fixed it? Should be very translatable to a column.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
77 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |