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.
Hi everyone!
I have two tables, one with the creation date of client accounts:
Client ID, Creation date
The second table includes created assignements:
Client ID, Assignment ID, Assignment creation date
What I want to do is to calculate the percentage of clients who created their account in previous month who placed an assignment in current month. I also want to calculate the average time from account registration to first creation of assignment.
Anyone got any suggestions on how to solve this?
Thank you very much in advance!
Solved! Go to Solution.
Hi @ny326n,
First, please create a relationship between the table.
Second, in second table, you create a calculated column using RELATED function as the following formula.
create-date=RELATED(Table1[Creation date])
Third, create another calculated column using the formula, which shows if the account was created in previous month.
flag=IF(MONTH(Assignment creation date)-MONTH(create-date)>=1,"Yes","No")
Create a measure to calculate the percentage of clients who created their account in previous month who placed an assignment in current month.
Percentage=CALCULATE(DISTINCTCOUNT(Table2[ClientID]),FILTER(Table2,Table[flag]="Yes"))/CALCULATE(DISTINCTCOUNT(Table2[ClientID]),ALL(Table2))
>>I also want to calculate the average time from account registration to first creation of assignment.
Create a calculated to get the difference using the formula.
difference=Table2[create-date]-Table2[Assignment creation date]
Create a measure using the formula.
Average=AVERAGE(Table2[difference])
Best Regards,
Aneglia
Hi @ny326n,
First, please create a relationship between the table.
Second, in second table, you create a calculated column using RELATED function as the following formula.
create-date=RELATED(Table1[Creation date])
Third, create another calculated column using the formula, which shows if the account was created in previous month.
flag=IF(MONTH(Assignment creation date)-MONTH(create-date)>=1,"Yes","No")
Create a measure to calculate the percentage of clients who created their account in previous month who placed an assignment in current month.
Percentage=CALCULATE(DISTINCTCOUNT(Table2[ClientID]),FILTER(Table2,Table[flag]="Yes"))/CALCULATE(DISTINCTCOUNT(Table2[ClientID]),ALL(Table2))
>>I also want to calculate the average time from account registration to first creation of assignment.
Create a calculated to get the difference using the formula.
difference=Table2[create-date]-Table2[Assignment creation date]
Create a measure using the formula.
Average=AVERAGE(Table2[difference])
Best Regards,
Aneglia
Thank you for your help! It worked perfectly!
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 |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |