The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all,
I have two tables, I need to get the most recent value and cod_in in the table (IN) ignoring month of data row table (Out)
I'm currently using this measure:
VALUE_RECENT = VAR _date = EOMONTH(SELECTEDVALUE(OUT[DATE]),-1)
VAR _data = MAXX(FILTER('IN', 'IN'[DATE]<= _date),'IN'[DATE])
RETURN
MAXX(FILTER('IN','IN'[DATE] = _data),'IN'[VALUE])
COD_IN_RECENT = VAR _date = EOMONTH(SELECTEDVALUE(OUT[DATE]),-1)
VAR _data = MAXX(FILTER('IN', 'IN'[DATE]<= _date),'IN'[DATE])
RETURN
MAXX(FILTER('IN','IN'[DATE] = _data),'IN'[COD_IN])
Result
Does someone know a good alternative for this measure?
File exemple: Example.pbix
Hi @maycon_bb
I have a few questions about this post, please help provide more detail information for us to solve it effectively.
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |