Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm struggling with a fairly straightforward issue and would love some assistance...
I have a matrix that contains the following, based on a table of order details that includes userID, date, and $ amount:
Rows = [First Purchase Week], a calculated column that looks for the first date of purchase for each userID.
Columns = [Week End], a calculated column that looks for the week ending that corresponds with each order date.
Values = [Count of UserID], a measure. "Count of UserID = DISTINCTCOUNT('warehouse OrderDetails'[UserID])"
The matrix displays values exactly as I would want them to appear.
What I would like to do, however, is fix the denominator of the values of the first purchase week, and use this total as the basis for cohort based analysis. Literally dividing the results of each subsequent week, one by one, by the first week. Below is a screenshot of the matrix
For example, I want to be able to calculate each week of the group whose first visit was 4/3/2021 (19 users), and show the percentage of them that returned each week - 19/19 in week 1, 13/19 in week 2, 4/19 in week 3, etc.
How can I do this?
Thanks in advance for any help here.
Solved! Go to Solution.
Hi,
This measure seems to work
Measure 2 = DIVIDE([Count of UserID],CALCULATE([Count of UserID],ALL('warehouse OrderDetails'[Week End])))
Hope this helps.
Hi,
See if my solution here helps - Identify Customers that Organisations can upsell or cross sell their products to.
Hi,
I'm not sure that this helped. I did not see the applicability here.
Effectively, all I am trying to do is replicate something similar to an absolute cell reference in powerBI. I want to always be able to use the count of users whose first visit week was in a certain period and fix that denominator against a count of those users who appeared in other weeks going forward.
Hi,
This measure seems to work
Measure 2 = DIVIDE([Count of UserID],CALCULATE([Count of UserID],ALL('warehouse OrderDetails'[Week End])))
Hope this helps.
This worked perfectly! Thank you!!
You are welcome.
Below is the link to the file:
https://drive.google.com/file/d/12rLuamYcEPfFGeVnlMk9Rr-J5fgy_bQn/view?usp=sharing
Thank you!
Hi,
Share the download link of your PBI file.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |