Forum Discussion

elisprague's avatar
elisprague
Copper Contributor
Jul 17, 2024

Power BI DAX measurements

Hello Power BI users.  I am trying to create a measurement that gives me the top 10 providers experiencing patient's leaving against staff advice (ASA).  The date that I am trying to create this measure lives in two separate tables from two different sources.  I've connected these two tables using a date table to connect the two tables.  

 

In the ASA_Ali_1 table there are multiple programs with dates listed within each row.  These dates include program capacity which will need to be used in the calculation.  (of note, the ASA_Ali_1 table does not contain case by case basis information but a summation of ASAs that have occurred for each date corresponding to a specific program). In the CLEAN_ASA table, contains case by case i.e., client leaving ASA and the provider that was working with said client at the time of their departure.

I need to use the program capacity to generate a relative number of ASAs of a specific provider (contained in CLEAN_ASA) against the average program capacity (contained in ASA_Ali_1).  I would like the output to show me the top 10 providers experiencing ASAs for the most recent month. 

Here is an image of the two data sources being used so you can get an idea of the structure.  

To summarize, my outputs columns in report view should show the provider, the number of ASAs they have experienced in the most recent month, the number of ASAs in the most recent month, and the percentage of ASAs relative to that program that provider was working in relative to their respective program's capacity for the most recent month.  (please note that the providers program they are assigned to work [within the CLEAN_ASA table] in is titled , "Housing location," and in Ali_ASA_1 this is identified as "Program"). 

Please let me know if I can create DAX measurements within both tables to generate this output.  Any help would be greatly appreciated 🙂 

 

 

 

 

No RepliesBe the first to reply

Resources