Forum Discussion
Value from max date
- Anonymous6 years ago
share your pbix.
and where are you adding this query
select A.* from dbo.events a
left join (select MachineID,max(EventRaised) _EVENT from dbo.[events]
Group by MachineID) b ON A.MachineID=B.MachineID AND a.EventRaised=B._EVENT
WHERE b._EVENT IS NOT NULLGet Data->Select Sql server -> ENter server name & database name->DirectQuery Mode-> Click on advance -> paste this query there ->
And load your data.
this will give you direct result set
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
measure is automatically filtering for those rows only which are in filter context with non blank values.
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Got this error now.
A single value for column 'TagId' in table 'Events' cannot be determined....
I do not have any filters active in my filter fields.
- Anonymous6 years agoNot applicable
Hi lukasjar
you have not closed bracket after tagid in return section.
Calculate(max(table[tagid]),filter())
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.- lukasjar6 years ago
Resolver I
That solved it not giving an error, but still dosnt return anything =(
- Anonymous6 years agoNot applicableWhat do you mean by not returning anything?
In one your screenshot you are getting output.
Thanks
Pravin