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.
Requesting help pulling data from two different tables.
Table 1 (MERGE_BillingSUMMARY) holds CPT codes.
Table 2 (MERGE_Observations) holds ICD9 codes.
I created the following 4 columns (2 in each table) and now need a 5th column or a measure that shows which patients are compliant and not compliant. To be compliant, a patient has to have been given a blood test (indicated by a cpt code) AND have been given a mental health test (indicated by ICD codes).
In MERGE_BillingSUMMARY I created...
Solved! Go to Solution.
Hi Eyelyn, the shortened DAX did help but I ended up merging the two tables into a new table to resolve my issue with pulling data from two tables. Thanks for responding.
Hi @anwilkins ,
If there is a relationship between MERGE_BillingSUMMARY table and MERGE_Observations table? Actually we need more details about your tables to help us clarify your scenario. You could create a dummy sample for us to test or
share your pbix file after removing sensitive data.
Refer to:
How to Get Your Question Answered Quickly - Microsoft Power BI Community
How to provide sample data in the Power BI Forum - Microsoft Power BI Community
In addition, Your [Compliant Patient] may be simplified:
Compliant Patient =
IF(MERGE_BillingSUMMARY[*Blood Test Met]=1 && MERGE_Observations[*MH Met]=1, "Compliant","Not Compliant")
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Eyelyn, the shortened DAX did help but I ended up merging the two tables into a new table to resolve my issue with pulling data from two tables. Thanks for responding.