The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hey there,,
here is my table below,,
I want to compare my last available value in the table with the previous one,
Thanks,,
Hi,
Show the exact result that you are expecting. Also, share the download link of the PBI file.
I didn't get any results so far,,
I need a bar that displays the last and the previous values with a different percentage.
Day Month Sum of Value 1 May 6,927,633 2 May 6,730,973 3 May 6,921,894 4 May 6,882,067 5 May 6,830,516 6 May 6,864,411 7 May 6,921,897 8 May 6,888,335 9 May 6,808,630 10 May 6,729,808 11 May 6,851,490 12 May 6,665,045 13 May 6,734,506 14 May 6,790,604 15 May 6,985,259 16 May 7,019,464 17 May 6,978,842 18 May 7,115,563 19 May 7,060,486 20 May 7,109,409 21 May (Blank) 22 May (Blank) 23 May (Blank) 24 May (Blank) 25 May (Blank) 26 May (Blank) 27 May (Blank) 28 May (Blank) 29 May (Blank) 30 May (Blank) 31 May (Blank) |
Hi,
To your visual, drag Month and Year from the Calendar Table. Write these measures
Total = sum(Data[sales])
Total on previous day = calculate([total],previousday(calendar[date]))
Growth over previous day (%) = divide(([Total]-[Total on previous day]),[Total on previous day])
Hope this helps.
I still do not know the result that you want.
thank you for your cooperation,
I want a graph that compares the last value with the previous one, given a date table.
then I want to find the difference by percentage.
@Saud19999 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....
The basic pattern is:
Column =
VAR __Current = [Value]
VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] < EARLIER('Table'[Date])),[Date])
VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])
RETURN
__Current - __Previous
User | Count |
---|---|
65 | |
62 | |
59 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
47 | |
44 |