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.
Hi,
I'm a PowerBI novice, and I am trying to correct a database design error using DAX.
I have two client types (Survivor, Supporter), but only Survivor is linked to a table with the date the service was rendered (service_id). I need to count the number of Supporters per month, but PowerBI cannot see them because they are not linked to a date (through service_id).
I thought to create a custom column that can find the ClientPI_id that they both share, and then use the same (service_id) found for Survivor to populate the matching blank cell for Supporter. How could I achieve this with DAX? (Pic below)
I really appreciate some help!
Thanks, Sarah
Solved! Go to Solution.
Hi, @sarahmclaughlin try it
@sarahmclaughlin You do not need to do this in PowerQuery, but add a calculated column in PowerBi.
Thank you so much! This worked perfectly!!! I've been stuck on this for weeks!
Hi! I get a message saying it doesn't recognise MAXX, and documentation says "This function is not supported for use in DirectQuery mode" - https://docs.microsoft.com/en-us/dax/maxx-function-dax
Is there another function I could try? How did it work on your side? Thanks so much!!!
@sarahmclaughlin You must create a computed column, not a measure, Please provide a screenshot of the error
See example
Example_pbix
@sarahmclaughlin You do not need to do this in PowerQuery, but add a calculated column in PowerBi.
Hi, @sarahmclaughlin try it
User | Count |
---|---|
14 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
28 | |
17 | |
11 | |
7 | |
5 |