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.
Hi Team,
I am stuck in one calculation in which I need to check the Minimum Value of "CHANGENR" column and populate the "VALUE_OLD" entry in front of every column .
Please see below for more calrification :
I trired using Min and Earlier function to compare these column but its giving me wrong value. Request you to please let me know what needs to be corrected in this:
Thanks,
Ashish
Solved! Go to Solution.
Hi,
This calculated column formula works
Reslt = LOOKUPVALUE(Sheet1[VALUE .OLD],Sheet1[CHANGENR],CALCULATE(MIN(Sheet1[CHANGENR]),FILTER(Sheet1,Sheet1[OBJECT.ID]=EARLIER(Sheet1[OBJECT.ID]))),Sheet1[OBJECT.ID],Sheet1[OBJECT.ID])
Hope this helps.
..
ashish
I am taken to a sign-in page.
Please check below link and try to downlaod from this
https://drive.google.com/file/d/1bdLVYS3h0FCXV_QeOAFs3Oo_iIP2n2uY/view?usp=sharing
Thanks,
Ashish
Hi,
This calculated column formula works
Reslt = LOOKUPVALUE(Sheet1[VALUE .OLD],Sheet1[CHANGENR],CALCULATE(MIN(Sheet1[CHANGENR]),FILTER(Sheet1,Sheet1[OBJECT.ID]=EARLIER(Sheet1[OBJECT.ID]))),Sheet1[OBJECT.ID],Sheet1[OBJECT.ID])
Hope this helps.
You are welcome. Thank you for your kind words.
Hi,
Cannot understand your question. The entries in the CHANGENR column are text. How can you take the minimum of a column of text entries?
Hi @Ashish_Mathur ,
You are right data type of column"CHANGENR" is Text whoever i can change it to "Whole Number" .
But i am not sure why i am getting wrong result .
Is there any solution how can i achieve this?
Thanks,
Ashish
Hi,
This calculated column formula works
Column = lookupvalue(Data[VALUE OLD],Data[CHANGENR],min(Data[CHANGENR]))
Hope this helps.
Hi @Ashish_Mathur ,
I have changed the format of "Changenr","OBJECTID" and "Value OLD" from Text to whole Number and then I tried the above forumla however i am getting the same value on each entry .
As we know Lookup function will work as VLOOKUP in which whenever there is a first exact match of Min value in CHANGENR column it will populate the first entry each row however It should give me if its "OBJECT ID" is different then it should check "Min" value of that "CHANGENR" Column and should pick the "Value Old entry " .
To make it more clear please see below screenshot of desire result :
I hope i am make it clear make requirement now.
Request you to please help .
Regards,
Ashish
Share the download link of the PBI file.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
64 | |
50 | |
36 | |
26 |
User | Count |
---|---|
85 | |
55 | |
45 | |
44 | |
36 |