Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi everyone,
So, I have a bit of a conundrup here that I can't seem to solve on my own, so I truly hope that somebody can help me figure out a solution.
Basically, I have the data for users (customers) who has registered with a website.
The data contains the following:
- Registration date
- Unique user ID
- User name
Examples:
Registration date | Unique user ID | User name |
18/10/2022 | sa3h21as3dh | John Smith |
13/09/2022 | 13gasd35g1as | Adam |
14/08/2022 | asd3g51s | Jon Snow |
21/07/2022 | dg1a6s3d8 | Karen |
19/06/2022 | hdf684dssg | Peter Parker |
11/05/2021 | q4sd6ds8g4s | Alex |
In my actual data, I have 800+ user registrations like the onces above, which I would like to have show:
- Registerations monthly
- Total accumulated registrations monthly
Now, here comes the most tricky part (if you ask me):
I also need the accumulated total for a given month, to be cross-referenced with the total orders made for the same given month.
Much like the data above, we have the same data for orders, looking somewhat like this:
Order date | Unique user ID | User name |
19/11/2022 | sa3h21as3dh | John Smith |
19/10/2022 | sa3h21as3dh | John Smith |
16/08/2022 | asd3g51s | Jon Snow |
25/07/2022 | dg1a6s3d8 | Karen |
21/06/2022 | hdf684dssg | Peter Parker |
17/05/2021 | q4sd6ds8g4s | Alex |
As you can see, a user can be "active" every month, by coming back and making a new purchase/order.
In this example above, you can see that John Smith has made an order in both Oct. and Nov. -> thus, John Smith has been active in both Oct. and Nov.
So, my ultimate goal here is to get to the following insights:
- Total orders per month (all distinct orders) - ☑️ (done)
- Total users active (made an order) pr month - ☑️ (done)
- Total users registered (accumulated) up until selected month - how? 🤔
I have an excel file with the data.
Unfortunately I dont think its possible to share/attach excel files to posts here on the forum, right?
The file contains 2 sheets
Ultimately, the data basically shows the orders and which user placed it.
It also shows when users registered their profile.
Ideally this is the graph that I want to be able to produce in PowerBI 😂
I can easily do it in Excel, but I have zero luck doing it in PowerBI.
Hmm.. for some reason it's not working for me?
Hi @Dbertelsen,
You can use:
Count = CALCULATE(DISTINCTCOUNT('Table'[Unique User]),FILTER('Table',MONTH(Order Date)<=MONTH(SELECTEDVALUE('Filter'[Date]))))
Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI
For some odd reason, this just returns the value "3" 😂
User | Count |
---|---|
94 | |
77 | |
71 | |
62 | |
58 |
User | Count |
---|---|
110 | |
103 | |
84 | |
65 | |
62 |