Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
Is there a way to convert this query for the service? It works well on the Desktop version but not in the service
declare @From date
declare @to date
SELECT t1.*,t2.*,t3.*
FROM Fact f
Cross apply
(
select top 1
from dimension1 d1
where f.id=d1.id
and datefrom >=@From and dateto <=@To
order by datefrom desc) t1
outer apply
(select top 1
from dimension2 d2
where f.id2=d2.id
and datefrom >=@From and dateto <=@To
order by datefrom desc) t2
outer apply
(select top 1
from dimension2 d2
where f.id3=d2.id
and datefrom >=@From and dateto <=@To
order by datefrom desc) t3
@Anonymous
And you are posting such a question in a forum that is on "DAX Commands and Tips"?
@daxer-almighty to answer te obvious yes. This can't be done through the GUI, it's a DAX only, if possible in Power BI.
And it doesn't give you to think that nobody has even tried to answer your question for such a long time? I'd kindly suggest you read this before posting any kind of question on forums (not only this one).
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |