Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I am currently working on a formula that was given to me for weighing items based on a designated Option. I have it working but only for the initial quarter, it doesn't distribute out to the rest of the quarters in the year. I am currenly only getting the Project Start Date and End date, I used the Start Date but recognized my error when the other quarters weren't reporting any data. Does anyone have any ideas on an approach to distribute based on quarters even though I only have a start and end date?
@DCampbellTSS
Please try this modifed version where both start and end dates are considered:
Schedule Weight =
VAR StartQtr = QUARTER([admin_projects.start_date])
VAR EndQtr = QUARTER([admin_projects.end_date])
VAR TotalQuarters = EndQtr - StartQtr + 1
VAR CurrentQtr = SELECTEDVALUE('Calendar'[Quarter])
RETURN
IF(
StartQtr <= CurrentQtr && CurrentQtr <= EndQtr,
SWITCH(
TRUE(),
[cost_budget_properties.value] = "Option 1",
(1 / TotalQuarters) * [cost_budgets.quantity],
[cost_budget_properties.value] = "Option 2",
LOOKUPVALUE(Option2Weights[Weight], Option2Weights[Quarter], CurrentQtr) * [cost_budgets.quantity],
[cost_budget_properties.value] = "Option 3",
LOOKUPVALUE(Option3Weights[Weight], Option3Weights[Quarter], CurrentQtr) * [cost_budgets.quantity],
0
),
0
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
10 | |
10 | |
9 |
User | Count |
---|---|
15 | |
13 | |
12 | |
12 | |
11 |