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
I have data something like this:
| Catagory | value | final value |
| A | 1 | 1 |
| A | 2 | 1 |
| B | 2 | 2 |
| B | 3 | 2 |
| B | 4 | 2 |
Basically number 1,2,3,4 are priority and if any atagory has prio 1 also 2 assign both to 1.
Solved! Go to Solution.
It sounds like you are just trying to get the min of each group /category is that right?
You'll need an expression like
Pi
The solution then is something like this:
| Catagory | value | final value |
| A | 5 | 5 |
| A | 7 | 5 |
| B | 7 | 6 |
| B | 6 | 6 |
| C | 5 | 5 |
| C | 6 | 5 |
| C | 5 | 5 |
| C | 6 | 6 |
Condition 1: Cat A --> Assign prio 5 only if 6 is not there against A.
Condition 2: Cat B --> Assign prio 6 only if 5 is not present against B.
Condition 3: Cat C --> If prio 5 and 6 both present against C, assign random 75% 5's to cat C and in rest 25%, 6's.
The solution then is something like this:
It sounds like you are just trying to get the min of each group /category is that right?
You'll need an expression like
Pi
DAX would be good for me, I dont want to go on Mquery for this
Hi prat_daxer,
Are you trying to do this with DAX (front end UI) or M query (data shaping and modelling)
Pi
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 |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 69 | |
| 39 | |
| 35 | |
| 23 |