Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi all,
I have an issue that I couldnt find answer for.
I have this table and Im trying to calculate the amount based on the relative duration.
For example, ?for the first row- 18/103*40K=6990
Thanks for your help!
Hi,
Its lookup column from different table, using related function. PO# is the key
@gkakun ,
try this measure,
Activity calculation =
VAR _activityDuration = SUM(Table[ Activity Duration])
VAR _allActivityDuration = CALCULATE(
SUM(Table[ Activity Duration]),ALL(Table))
VAR _result = DIVIDE(_activityDuration ,_allActivityDuration )*40000
RETURN _result
Thanks,
Arul
Thanks a lot for your help.
This is like the measure looks like, it should provide 40K eventually, but its ot the case
and of course, the 40K should be taken from the SC amount, since its changing between the POs
@gkakun ,
then use SC amount in the measure.
Activity calculation =
VAR _activityDuration = SUM(Table[ Activity Duration])
VAR _allActivityDuration = CALCULATE(
SUM(Table[ Activity Duration]),ALL(Table))
VAR _result = DIVIDE(_activityDuration ,_allActivityDuration )*[SC Count]
RETURN _result
Thanks,
Arul
Thanks a lot! unfortunately its not working 😞
User | Count |
---|---|
84 | |
70 | |
68 | |
58 | |
51 |
User | Count |
---|---|
44 | |
41 | |
34 | |
34 | |
30 |