Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everybody,
I'm quite new to Power Bi and am struggling with this task:
Calculating value generated of every user in the first 30 days since the Created_At date.
Here' s how my data looks like:
The result would be:
User_Id 1234 - $11.00
User_Id 1235 - $25.00
User_Id 1236 - $0.00
I'm not even sure how to begin with this - with a calculated collumn next to users table or with a measure. I've managed to do this using Excel without problems, but would like to transfer the calculations to Power Bi. I have set up the relationships between the tables.
Would appreciate some tips or hints how to tackle this.
Thanks a lot in advance!
Gvido
Solved! Go to Solution.
HI @GvidoB
This calculated measure gets pretty close and doesn't rely on any relationships. I have attached a copy of the PBIX file.
Measure = VAR x = GENERATE( User, FILTER( 'Orders', 'Orders'[User_Id] = User[User_ID] && 'Orders'[Sent_At] < 'User'[Created_At] +30 ) ) RETURN SUMX(x,[Value])
HI @GvidoB
This calculated measure gets pretty close and doesn't rely on any relationships. I have attached a copy of the PBIX file.
Measure = VAR x = GENERATE( User, FILTER( 'Orders', 'Orders'[User_Id] = User[User_ID] && 'Orders'[Sent_At] < 'User'[Created_At] +30 ) ) RETURN SUMX(x,[Value])
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |