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.
Hello everyone,
I have the following example data
Month | Day Term | Amount |
Sep | 7 | 100 |
Sep | 30 | 120 |
Sep | 45 | 104 |
Sep | 7 | 99 |
Sep | 30 | 93 |
Sep | 45 | 104 |
Oct | 7 | 94 |
Oct | 30 | 104 |
Oct | 45 | 106 |
Oct | 7 | 97 |
Oct | 30 | 90 |
Oct | 45 | 106 |
Nov | 7 | 105 |
Nov | 30 | 104 |
Nov | 45 | 101 |
Nov | 7 | 94 |
Nov | 30 | 91 |
Nov | 45 | 97 |
I have group by Month and Day Term and summarize Amount and also get Total Amount by Month.
Column % is getting by divide every Amouny line by Total Month,
Column Avg Day is % * Day Term
I need to get sum go Avg Day (Sep = 27.65, Oct=27.98)
Month | Day Term | Amount | % | Avg Day |
Sep | 7 | 199 | 0.320967742 | 2.246774194 |
Sep | 30 | 213 | 0.343548387 | 10.30645161 |
Sep | 45 | 208 | 0.335483871 | 15.09677419 |
Total Month | 620 | 27.65 |
Month | Day Term | Amount | % | Avg Day |
Oct | 7 | 191 | 0.32 | 2.239530988 |
Oct | 30 | 194 | 0.32 | 9.748743719 |
Oct | 45 | 212 | 0.36 | 15.9798995 |
Total Month | 597 | 27.9781742 |
In Power BI I have the next Measures
Measures Option 1
Solved! Go to Solution.
@javr , Try daily ratio like
New column
divide([Term Amount],sumx(filter(Table, [month]= earlier([month])),[Term Amount]))
new Measure
% = divide(sum(Data[Term Amount]),sumx(filter(allselected(Data), Data[month]= max(Data[month])),Data[Term Amount]))
Min Days Term = MIN(Data[Day Term])
Avg Day Term = sumx(summarize(Data,Data[Month], Data[Day Term],"_1", [Min Days Term] * [%]),[_1])
Hi,
You may download my PBI file from here.
Hope this helps.
@javr , Try daily ratio like
New column
divide([Term Amount],sumx(filter(Table, [month]= earlier([month])),[Term Amount]))
new Measure
% = divide(sum(Data[Term Amount]),sumx(filter(allselected(Data), Data[month]= max(Data[month])),Data[Term Amount]))
Min Days Term = MIN(Data[Day Term])
Avg Day Term = sumx(summarize(Data,Data[Month], Data[Day Term],"_1", [Min Days Term] * [%]),[_1])
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |