Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a data set similar to the below;
IND ID | Policy ID | Product | Create Date |
123456 | 1 | Motor | 01/01/2018 |
123456 | 2 | Home | 01/12/2017 |
123456 | 3 | Motor | 15/12/2017 |
654321 | 4 | Home | 01/11/2017 |
654321 | 5 | Motor | 01/12/2017 |
I'm trying to create a measure to calculate the volume of motor sales created by an individual after they had created their homw policy. For example IND ID 123456 has created 2 motor policies after their initial home policy. I appreciate this seems very straightforward, but for whatever reason I've been unable to get it 100%.
Any help would be much appreciated.
Solved! Go to Solution.
@Anonymous,
Create the following column and measure in your table, then check if you get expected result.
Column = CALCULATE(FIRSTNONBLANK(Table[Create Date],1),FILTER(Table,Table[IND ID]=EARLIER(Table[IND ID])&& Table[Product]="Home"))
Volume = CALCULATE(COUNT(Table[IND ID]),FILTER(Table,Table[Product]="Motor"&&Table[Create Date]>Table[Column]))
Regards,
Lydia
@Anonymous,
Create the following column and measure in your table, then check if you get expected result.
Column = CALCULATE(FIRSTNONBLANK(Table[Create Date],1),FILTER(Table,Table[IND ID]=EARLIER(Table[IND ID])&& Table[Product]="Home"))
Volume = CALCULATE(COUNT(Table[IND ID]),FILTER(Table,Table[Product]="Motor"&&Table[Create Date]>Table[Column]))
Regards,
Lydia
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |