Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I have a date and value column within my table.
I have a card and within that, I need the value based on the latest date. I could have 5 rows of data linked to one date so need to sum them up.
Example below, my card would return a value of 1800.
Date. Desc. Value
10/07/2024 test1. 1000
10/07/2024. Test2. 800
09/07/2024 test1. 600
09/07/2024. Test 2. 300
Solved! Go to Solution.
Hi @M_SBS_6 ,
You can use either measure or calculated column ,
Measure :
LatestDateValueSum =
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[Date] = MAX('Table'[Date])
)
or
Create a calculated column to rank the dates so you can identify the latest date:
DateRank =
RANKX(
ALL('Table'[Date]),
'Table'[Date],
,
DESC,
DENSE
)
Create a measure to sum the values for the latest date by filtering the data based on the rank:
LatestDateValueSum =
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[DateRank] = 1
)
)
Hi @M_SBS_6 ,
You can use either measure or calculated column ,
Measure :
LatestDateValueSum =
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[Date] = MAX('Table'[Date])
)
or
Create a calculated column to rank the dates so you can identify the latest date:
DateRank =
RANKX(
ALL('Table'[Date]),
'Table'[Date],
,
DESC,
DENSE
)
Create a measure to sum the values for the latest date by filtering the data based on the rank:
LatestDateValueSum =
CALCULATE(
SUM('Table'[Value]),
FILTER(
'Table',
'Table'[DateRank] = 1
)
)
Hi @M_SBS_6 ,
please try below DAX :
If this works for you, please accept it as solution.
Thanks,
Ankita
Hi @M_SBS_6 - can you try below measure to get the data as per latest date
Measure used:
It works
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |