Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi
I'm new to Power Bi so sorry inadvance for the possible stupid questions.
I have a database loaded into te model with incidents and a priority level.
in different tables linked on the priorityid.
When i count the incidents i get somethin like this (fictional numbers)
P1 70
P2 400
P3 1000
P4 3000
400
So the last 400 incidents didn't get a Piriority id does count them as expected.
now i added a value to the priority to sort them (1 - 4) so i can put them in order (the text values contain more data then the P-number)
but the 400 without priority dont get an number.
So i want to mak a column where i put the ordernumber when it exists and the biggest ordernumber +1 when it doesn't exist.
but i can't get it right.
I tried:
Solved! Go to Solution.
Hi,
Thanks for the answers, they didn't really did the trick but they set me on the path to the solution.
This works:
PrioritySort = IF ( ISBLANK ( Incidents[priorityId] ) , MAX ( IncidentPriorities[IncidentPriorityOrder] ) + 1 , RELATED(IncidentPriorities[IncidentPriorityOrder] ) )
@Anonymous ,
You may change measure to calculate column:
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for the answers, they didn't really did the trick but they set me on the path to the solution.
This works:
PrioritySort = IF ( ISBLANK ( Incidents[priorityId] ) , MAX ( IncidentPriorities[IncidentPriorityOrder] ) + 1 , RELATED(IncidentPriorities[IncidentPriorityOrder] ) )
Sample data would help. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
That being said, it looks like you have a measure and so in measures you need to have an aggregator around a column like SUM, MAX, COUNT, etc.
Hi ,
Here some sample date:
The first row i want to put 5 in a new column and the other rows shou state the incidentPriorityOrder
so i can sort 1- 5
regards
Christoph
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
42 | |
30 | |
27 | |
27 |