The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a data table and calendar table.
The data table contains two dates: admission date and discharge date. (the admission date and dishcarge date may not be in the same month)
I have created a relationship from the key column in the calender to the admission date column in the data table, and a inactive realtionship to the discharge date column.
I need to be able to count how many admissions and dishcarges there were for each month/year and display this in a graph.
I have scoured the net forhours to find a sotuoin to this to no avail.
SUre: https://www.dropbox.com/s/fd2igf82ilirke4/Occuapancy%20-%20Copy.pbix?dl=0
I also want to be able to show hourly admissions and discharghes in a chart below too. But when i though i had this working, the cross filtereing does not work at all
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
Do these measures work?
Admissions = distincountcount(data[Admn number])
Dicharges = calculate([admissions],userelationship(data[discharge date],calendar[date]))
Hope this helps.
@Ashish_Mathur @amitchandak I have tried:
Admissions = distincountcount(data[Admn number])
Dicharges = calculate([admissions],userelationship(data[discharge date],calendar[date]))
But all i get is the exact same number count for admission and discharge
Hi,
Share the link from where i can download your PBI file.
@cyberblitz , For admission it just count or distinctcount of admission id. For discharge, you need to use userelation to use the discharge date.
refer example : https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
95 | |
94 | |
85 | |
68 | |
65 |
User | Count |
---|---|
241 | |
124 | |
121 | |
81 | |
79 |