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.
I have one table that shows a date, that date's week number, category, and number of conversions for that entry
I am looking to sum up the conversions by Category, but with taking the Max week number, taking the sum of each category and dividing it by the max week number. Then using that number and multiplying it by 52 to get my projected annual number. **Note, my data has 2020 data, so I need the Max week number of 2021 or current year***
I also have another table-circled in red below-where the annual goal is listed for each category. I then want to take my Projected Number and show it against the projected annual number to show % attained against goal.
Solved! Go to Solution.
Projected=VAR _maxdate=Max(sampledata[Dates]) VAR _total=CALCULATE(SUM(sampledata[Conversions]),DATESYTD(sampledata[Dates])) VAR _maxweek=CALCULATE(MAX(sampledata[WeekNumber]),sampledata[Dates]=_maxdate) REUTRN DIVIDE(_total,_maxweek)*52
Projected=VAR _maxdate=Max(sampledata[Dates]) VAR _total=CALCULATE(SUM(sampledata[Conversions]),DATESYTD(sampledata[Dates])) VAR _maxweek=CALCULATE(MAX(sampledata[WeekNumber]),sampledata[Dates]=_maxdate) REUTRN DIVIDE(_total,_maxweek)*52
Thank you very much. I can see what you wrote is doing, but would have never figured that out. I had to fix "REUTRN", but that is irrelevant to what you provided.
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
42 | |
39 | |
19 | |
19 |