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.
Hi,
I am quite new to PBI so would need help to create a new column (new value) based on the below sample data. Thank you.
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
It is for creating a new calculated column.
Please check the below picture and the attached pbix file.
new_value CC =
VAR _grouptable =
FILTER ( data, data[group] = EARLIER ( data[group] ) )
VAR _maxvalue =
MAXX ( _grouptable, data[value] )
VAR _maxproperty =
SUMMARIZE ( FILTER ( _grouptable, data[value] = _maxvalue ), data[property] )
RETURN
IF (
data[value] = _maxvalue,
data[value]
- SUMX (
FILTER ( _grouptable, NOT ( data[property] IN _maxproperty ) ),
data[value]
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
It is for creating a new calculated column.
Please check the below picture and the attached pbix file.
new_value CC =
VAR _grouptable =
FILTER ( data, data[group] = EARLIER ( data[group] ) )
VAR _maxvalue =
MAXX ( _grouptable, data[value] )
VAR _maxproperty =
SUMMARIZE ( FILTER ( _grouptable, data[value] = _maxvalue ), data[property] )
RETURN
IF (
data[value] = _maxvalue,
data[value]
- SUMX (
FILTER ( _grouptable, NOT ( data[property] IN _maxproperty ) ),
data[value]
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thanks Jihwan for your prompt response. Your intepretation is correct.
What if the property column does not use/contain numbers? Example below.
Hi, @lsihui_
Have you solved your problem? If it has been resolved, please accept the reply that helped you as a solution. If it has not been resolved, please provide more information.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I think it is still the same.
Please check the below picture and the attached pbix file.
Thank you.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
77 | |
40 | |
40 | |
35 |