March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I need help with create measure to calculate weight of item price relative to 1 year, but I have table with multi-year data something like this
(this is a sample and very simplified table)
ID | NAME | PRICE | YEAR |
1 | a | 200 | 2023 |
2 | b | 300 | 2023 |
1 | a | 100 | 2024 |
1 | a | 540 | 2023 |
1 | a | 300 | 2023 |
output for "a" needed to be something like "0,776" for 2023, its be best to be able to filter in visualize by name or id, but a do not need to visual filter by year because I need to use this weight to other measure like weight for 2023 and weight for 2024 at the same time
i'm tired to use answers from other topics but its show's wrong calculations like 2,44 (from orginal model) when should be between 0 and 1
Solved! Go to Solution.
It's 0.776 because it's should by like this
X | A | B | C | D | E |
1 | 2023 | 2024 | WEIGHT 2023 | WEIGHT 2024 | |
2 | a | 1040 | 100 | 0,7761 | 1 |
3 | b | 300 | 0,2239 |
B2 is sum of all items "a" from 2023 but in D2, the formula looks like this: =B2 / SUM(B2:B3) and I'm need that weight for 2023 and 2024
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |