The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello Power Bi Aces: So...I used this Dax function:
Hi, @Karolina411 ;
You could try it.
ReAdmit of Post_Admit =
CALCULATE (
DISTINCTCOUNT ( PrePostAdmits[DurableKey] ),
FILTER (
ALL ( PrePostAdmits ),
YEAR ( [date] ) = YEAR ( MAX ( 'table'[date] ) )
&& PrePostAdmits[Readmit<30Days] = 1
|| PrePostAdmits[PostAdmit] = 1
)
)
Here 'table' could change to this table's name.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Karolina411 , I think you need measure similar to what I have discussed in HR Blog
Thank you. I was planning to go toward this much more complex route but why does my same formula (
work for my initial % calc:
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
21 | |
20 | |
11 | |
10 | |
7 |