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
Hi All,
Is there a way to assign a value after group by
I have a child code which is indicated with a flag 'Y' or 'N'.
Child codes are associated with parent codes what I am trying to achieve is
create a new column or measure at parent code level
Even one child code has flag Y then assign Y to the whole parent code
I created following and its working fine until when I select different dates the new column is not considering date slicer.
@Anonymous , Create a meausre
Has C_Flag = var __Parent = max('Table'[Parent Code])
var __max = maxx(FILTER(ALLselected('Table'), 'Table'[Parent Code] = __Parent),[C_Flag Measure])
return
IF(__max = 1,"Y","N")
or
Has C_Flag = var __Parent = max('Table'[Parent Code])
var __max = maxx(FILTER(ALL('Table'), 'Table'[Parent Code] = __Parent),[C_Flag Measure])
return
IF(__max = 1,"Y","N")
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Thank you @amitchandak
Sure I will try and will let you know the result.
quick question I wanted the column to be used as slicer since we are creating a measure I think it wont allow us to use as slicer Y and N as inputs.
Any suggetion on that will be really helpful
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 |
|---|---|
| 52 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |