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.
Solved! Go to Solution.
@pawelj795 - Sorry, I always mess up dates in non-US form.
Measure =
VAR __MaxDate = MAX('Table'[Update Date])
VAR __2ndDate = MAXX(FILTER('Table',[Update Date]<>__MaxDate),[Update Date])
VAR __2ndValue = SUMX(FILTER('Table',[Update Date] = __2ndDate),[Likes])
VAR __MaxValue = SUMX(FILTER('Table',[Update Date] = __MaxDate),[Likes])
RETURN
__MaxValue - __2ndValue
@pawelj795 - Not sure I 100% follow but I think:
Measure =
(MAX([Update Date]) - MIN([Update Date]) * 1.
Kind of interested how you get fractional Likes.
@Greg_Deckler
Thanks for weighing in.
Fractional likes come from rounding percentages 😉 They are not important.
I show below example of my desired results.
I want to calculate difference between value in blue circle and value in red circle.
@pawelj795 - Ah, you need Lookup Min/Max - https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434
Basically,
Measure =
VAR __MinDate = MIN('Table'[Update Date])
VAR __MaxDate = MAX('Table'[Update Date])
VAR __MinValue = SUMX(FILTER('Table',[Update Date] = __MinDate),[Likes])
VAR __MaxValue = SUMX(FILTER('Table',[Update Date] = __MaxDate),[Likes])
RETURN
__MaxValue - __MinValue
@pawelj795 - Sorry, I always mess up dates in non-US form.
Measure =
VAR __MaxDate = MAX('Table'[Update Date])
VAR __2ndDate = MAXX(FILTER('Table',[Update Date]<>__MaxDate),[Update Date])
VAR __2ndValue = SUMX(FILTER('Table',[Update Date] = __2ndDate),[Likes])
VAR __MaxValue = SUMX(FILTER('Table',[Update Date] = __MaxDate),[Likes])
RETURN
__MaxValue - __2ndValue
@Greg_Deckler
Thanks that works perfectly! I was exactly looking for that.
By the way, I have the same issue with US date format 😉
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 |
---|---|
78 | |
78 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |