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,
In the below table (direct hours (A), and Earned (B)) are delivering the right SUM total.
However, the (performance (C)) column needs to be 153.88 divided by 142.7 .
Basically, I need a table that Sums column A, Sums column B, but column C has to divide the totals of B & A (B:A).
Moreover, the table is being filtered by users, using filters for (Assoc_ID, and WK_end_date).
I tried this, but it doesn't work:
Solved! Go to Solution.
Hi @Anonymous ,
Try this.
Measure =
VAR x =
MAX([Earned])/ MAX([Direct hours])
RETURN
IF(
HASONEFILTER(Sheet1[Direct hours]),
x,
DIVIDE( SUM(Sheet1[Earned]), SUM(Sheet1[Direct hours]) )
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try this.
Measure =
VAR x =
MAX([Earned])/ MAX([Direct hours])
RETURN
IF(
HASONEFILTER(Sheet1[Direct hours]),
x,
DIVIDE( SUM(Sheet1[Earned]), SUM(Sheet1[Direct hours]) )
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , This formula seems fine. What is the issue you are getting
CALCULATE(DIVIDE(SUM(tblTempReport[earned]),(SUM(tblTempReport[direct_hours])))
Can you share sample data and sample output in table format?
Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.
Thanks,
Yes, it seems that the above formula is OK, but the above result for C should be 107.83, not 14.78.
Here is a more clear example:
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |