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.
Good morning,
I would like to calculate the % of Gran Total (per week) for the Intake. I tried to use the powerbi pre-filled calculation but it's not working when we have more than 1 week. So I would like to have a new column with the % of gran total (1% to 100%) for each week.
Anyone can please support? Thanks!!
Solved! Go to Solution.
Hi @actt ,
Based on your description, I have created a simple sample:
Please try:
GT% =
var _a = SUM(FactTable[Intake])
var _b = CALCULATE(SUM(FactTable[Intake]),ALLEXCEPT(DimDate,DimDate[Week]))
return DIVIDE(_a,_b)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @actt ,
Based on your description, I have created a simple sample:
Please try:
GT% =
var _a = SUM(FactTable[Intake])
var _b = CALCULATE(SUM(FactTable[Intake]),ALLEXCEPT(DimDate,DimDate[Week]))
return DIVIDE(_a,_b)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |