Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hello All experts,
I am new to power BI and have been working on this for a month now.
I have updated the table using the RELATED query on DAX.
I suspect you want a merge @aakhibsyed - can you provide some actual data using the info in the links below so we can assist? Conceptually, a Merge (Join) will work like RELATED/RELATEDTABLE in DAX, or VLOOKUP in Excel. There is a good article here on how it works. The example uses Excel, but Power Query in Excel and Power BI are identical in this respect.
To really assist though, I'd need sample data to demonstrate. I cannot copy and paste a screenshot into Power BI. Need a table. Again, the link below shows how to do that.
How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi @aakhibsyed
You can probably create a function in PQ, yes. Can you show samples of the tables and an example of the exact operation you need to perform on them?
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Below is the sample data.
I have tables in the right side.. which I am pulling related data to the new column.. and the ones highlighted in Magenta are the calculative columns.
closeinmins = DATEDIFF(Monthly[REPORT_DATE],Monthly[CLOSE_DATE],MINUTE)
Dueinmins = IF(Monthly[PRIORITY_TYPE_ID]=5,"240",IF(Monthly[PRIORITY_TYPE_ID]=6,"2880",IF(Monthly[PRIORITY_TYPE_ID]=7,"1440",IF(Monthly[PRIORITY_TYPE_ID]=8,"10080",IF(Monthly[PRIORITY_TYPE_ID]=9,"480",IF(Monthly[PRIORITY_TYPE_ID]=10,"20160"))))))
On_time = IF((Monthly[CloseInMins]<JOB_TICKET[DueInMins]&&Monthly[CloseInMins]>0),"On Time")
@aakhibsyed , DAX formulae vs M language (native language of Power Query) queries have nothing to do with each other, just like English and Chinese.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Thanks for clearing this..Can you please guuide towards the solution.
Without getting into Power query (Chinese) 🙂 is there any way I can do it in DAX to run the procedures and steps to preapre my data in a quick. or I can record it somewhere to run it again and again.
Some of the content is variable per each dataset. Can I use power query for this??
Kindly help
Hmm.. a bit difficult to break it down to very detals, I can only sketch it out like this,
Create a blank query in Power Query and name it TECH_GROUP
let
STATUS_TYPE =
let
Source = #table({"STATUS_TYPE_NAME", "STATUS"}, {{"A",1},{"B",2}})
/*
other steps
*/
in
Source,
Source = #table({"STATUS_TYPE_NAME","Qty"}, {{"B",100},{"A",200},{"B",150}}),
RELATED = Table.NestedJoin(Source, {"STATUS_TYPE_NAME"}, STATUS_TYPE, {"STATUS_TYPE_NAME"}, "STATUS_TYPE", JoinKind.LeftOuter),
#"Expanded STATUS_TYPE" = Table.ExpandTableColumn(RELATED, "STATUS_TYPE", {"STATUS"}, {"STATUS"})
in
#"Expanded STATUS_TYPE"
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |