Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |