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.
I'm trying to recreate simple SQL query in DAX. The output Query needs to work in Power BI Report Builder paginated report and I have been trying all day reading all sorts of PowerBI / DAX online resources to rewrite this. A little bit about the data:
Select
CC.Name, CC.Model as 'CustomCarModel', CC.MaxSpeed,
Ch.ChassisManufacturer as 'ChassisManufacturer', Ch.Model as 'ChassisModel', Ch.ManufacturedDate as 'ChassisManfDate',
E.EngineManufactuer as 'EngineManufacturer', E.Model as 'EngineModel', E.Power, E.CylCount, E.ManufacturedDate
From CustomCars CC
Join Chassis Ch on Ch.CarID = CC.CarId
Join Engine E on E.CarID = CC.CarID
where
CC.IsActive = 1 and CC.FirstTestDriveYear < 1980 and
Ch.IsActive = 1 and
E.IsActive = 1
… Any help is appreciated.
Hi, you asked how to write in DAx, but just in case.
I don't use power bi report builder. But if you can use the power query part of bi it is simple, just merge the tables together, filter out unwanted rows, select columns you want. Same as the sql.
Thanks for the tip, unfortunately due the designed life cycle of paginated reports I have to write this query in report builder.
User | Count |
---|---|
23 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |