Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello guys,
Can you help me with this one?
I have a table as shown below:
so basically, what I want to make is a new measurement like the configuration column on the above image.
thank you
Solved! Go to Solution.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
Table:
You may create measures as follows.
Configuration % =
DIVIDE(
SUM('Table'[Total Unit]),
CALCULATE(
SUM('Table'[Total Unit]),
FILTER(
ALLSELECTED('Table'),
'Table'[Year] = MAX('Table'[Year])
)
)
)
Take up =
DIVIDE(
SUM('Table'[Sold]),
SUM('Table'[Total Unit])
)
Remaining =
SUM('Table'[Total Unit]) - SUM('Table'[Sold])
Configuration of Remaining Unit % =
DIVIDE(
[Remaining],
CALCULATE(
[Remaining],
FILTER(
ALLSELECTED('Table'),
'Table'[Year] = MAX('Table'[Year])
)
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Based on your description, I created data to reproduce your scenario.
Table:
You may create measures as follows.
Configuration % =
DIVIDE(
SUM('Table'[Total Unit]),
CALCULATE(
SUM('Table'[Total Unit]),
FILTER(
ALLSELECTED('Table'),
'Table'[Year] = MAX('Table'[Year])
)
)
)
Take up =
DIVIDE(
SUM('Table'[Sold]),
SUM('Table'[Total Unit])
)
Remaining =
SUM('Table'[Total Unit]) - SUM('Table'[Sold])
Configuration of Remaining Unit % =
DIVIDE(
[Remaining],
CALCULATE(
[Remaining],
FILTER(
ALLSELECTED('Table'),
'Table'[Year] = MAX('Table'[Year])
)
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It works!
Thank you for your help.
Sorry if my questions aren't that clear.
@Anonymous
Hi, since you need the (%) by year, you may use these measures:
# Total Units = SUM ('YourTable'[Total Unit])
# Total Units Per Year =
CALCULATE(
[# Total Units],
ALLEXCEPT( 'YourTable',
'YourTable'[Year],
'YourTable'[Cluster],
'YourTable'[Sub Cluster]
)
)
# Configuration (%) = DIVIDE( [# Total Units], [# Total Units Per Year], 0 )
Kind regards,
Razwan
Try
configuration % = divide(sum(table[Total Units]),calculate(sum(table[Total Units]),all(table)))
Remaning = sum(table[Total Units]) -sum(table[sold])
configuration % = divide(sum(table[Total Units]),calculate(sum(table[Total Units]),all(table)))
take up =divide(sum(table[sold]),sum(table[Total Units]))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
126 | |
78 | |
78 | |
59 | |
51 |
User | Count |
---|---|
165 | |
83 | |
68 | |
68 | |
59 |