Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Dears,
i've a table with multiple Cities which are not sorted and next to each city some versions . i would like to add another column where whenever the version is the highest one in that city, he will put 1 and for others he will put 0.
tbl will looks like this:
| City | Version |
| City1 | TGF V1.0 |
| City1 | TGF V6.0 |
| City1 | TGF V3.0 |
| City2 | TGF V1.0 |
| City2 | TGF V1.0 |
| City2 | |
| City2 | TGF V4.0 |
| City3 | TGF V2.0 |
| City5 | TGF V1.0 |
Solved! Go to Solution.
pls see the attachment below
Proud to be a Super User!
maybe you can try to create two columns.
Column =
var v=right('Table'[Version],3)
return if(v="",0,int(v))
Column 2 =
VAR _max=CALCULATE(max('Table'[Column]),ALLEXCEPT('Table','Table'[City]))
return if('Table'[Column]=_max,1,0)
Proud to be a Super User!
This is what i'm getting as error, could you help me please
maybe try
Column 2 =
VAR _max=CALCULATE(max(sheet1(var v]),ALLEXCEPT('sheet1','sheet1'[project name]))
return if('sheet1'[var v]=_max,1,0)
Proud to be a Super User!
i tried it but it doesn't work. could you apply it in your laptop and share with me the correct dormula to put please.
thanks in advance
pls see the attachment below
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 74 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |