Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello everybody,
I am new to PowerBI and have been trying to write a DAX formula to create a very simple measure to use in my visuals.
I want to know the latest value by category (topic & type!) whereas there are different dates for the different categories and the table is updated regularily (most recent date topic A, AC: 28.01.2023; most recent date Topic B, AC: 31.01.2023).
So what would for example be the specific formula for the value of
- the latest date (in here 28.01.2023)
- for topic A
- type AC ?
Thanks a lot for your help 🙂 !
Solved! Go to Solution.
Hi, @CuriousMonkey
You can try the following methods.
Measure =
Var _maxdate=CALCULATE(MAX('Table'[Date]),FILTER(ALL('Table'),[Topic]="A"&&[Type]="AC"))
Return
CALCULATE(MAX('Table'[Value]),FILTER(ALL('Table'),[Date]=_maxdate&&[Topic]="A"&&[Type]="AC"))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @CuriousMonkey
You can try the following methods.
Measure =
Var _maxdate=CALCULATE(MAX('Table'[Date]),FILTER(ALL('Table'),[Topic]="A"&&[Type]="AC"))
Return
CALCULATE(MAX('Table'[Value]),FILTER(ALL('Table'),[Date]=_maxdate&&[Topic]="A"&&[Type]="AC"))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi v-zhangti,
thanks a lot for your help - this is exactly what I was looking for!
Best,
CuriousMonkey
For the latest date for topic A I got
Hi FreemanZ,
thanks a lot for your reply!
So what do I do exactly if I just want to get the latest value of Topic A, Type AC?
I just need a single value, not a list of all latest values by all categories.
Thanks again 🙂
try to plot a tabe visual with Topic, Type columns and a measure like:
LatestValue =
MAXX(
TOPN(
1,
TableName,
TableName[Date],
),
TableName[Value]
)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 105 | |
| 41 | |
| 34 | |
| 25 |