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,
How to allocate some value (lets say Yearly Target), equally thorugh Quarters or Months ?
Firstly, I have my Target Table:
Year | Target |
2019 | 670 |
Then I have my Measures to allocate this like below:
Solved! Go to Solution.
Hi admin_xlsior,
According to your description, my understanding is that you want to get the data divided averagely by the months, in your scenario, the data should be 55.8 for all months.
We can first create three calculated columns on the Date table using the following query:
Month = CONCATENATE( FORMAT('Date'[Date],"MMMM")," " &FORMAT('Date'[Date],"YYYY"))
Quarter = "Quarter" &" "& FORMAT('Date'[Date],"Q")&","&'Date'[Date].[Year]
Monthnumber = MONTH('Date'[Date])
Then sort the Month column by Monthnumber:
After that, we can create a measure like below:
Target Value = DIVIDE(SUM(ProductivityTarget[Target]),12)*CALCULATE(DISTINCTCOUNT('Date'[Month]),FILTER('Date','Date'[Year] = MIN(ProductivityTarget[Year])))
Drag the Month, Quarter and Target Value column to table visual, the result will like below:
Please refer to the following pbix file
https://1drv.ms/u/s!Ao9Of0JgO6MU7WB5_jwWjrCQCQYw
Best Regards,
Teige
Hi admin_xlsior,
According to your description, my understanding is that you want to get the data divided averagely by the months, in your scenario, the data should be 55.8 for all months.
We can first create three calculated columns on the Date table using the following query:
Month = CONCATENATE( FORMAT('Date'[Date],"MMMM")," " &FORMAT('Date'[Date],"YYYY"))
Quarter = "Quarter" &" "& FORMAT('Date'[Date],"Q")&","&'Date'[Date].[Year]
Monthnumber = MONTH('Date'[Date])
Then sort the Month column by Monthnumber:
After that, we can create a measure like below:
Target Value = DIVIDE(SUM(ProductivityTarget[Target]),12)*CALCULATE(DISTINCTCOUNT('Date'[Month]),FILTER('Date','Date'[Year] = MIN(ProductivityTarget[Year])))
Drag the Month, Quarter and Target Value column to table visual, the result will like below:
Please refer to the following pbix file
https://1drv.ms/u/s!Ao9Of0JgO6MU7WB5_jwWjrCQCQYw
Best Regards,
Teige
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |