cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
cbouichi
Helper IV
Helper IV

Switch tabel row value

Hi everybody,

 

i try too switch the "Oorzaak (groups)" row when its blank with the one that is not blank with the same "inspectienummerTermijn"

Schermafbeelding 2020-11-09 190018.png

i try to use the measure in the matrix as below

image.png

 

Can someone help me?

1 ACCEPTED SOLUTION

thank you @camargos88 ,

 

fill down doesnt work in this senario because some of the value has to stay blank only the one with the same inspectienummerTermijn where a "oorzaak Group" is blank have to be filled

 

But i find a solution that worked for me. so i will place it here in cause somebody have the same problem.

 

Oorzaak =
VAR _id =
SELECTEDVALUE ( 'Meldingen&getCustominspecties'[InspectienummerTermijn] )
RETURN
CALCULATE (
MAX ( 'Meldingen&getCustominspecties'[Oorzaak (groups)] ),
FILTER (
ALL ( 'Meldingen&getCustominspecties' ),
'Meldingen&getCustominspecties'[InspectienummerTermijn] = _id
)
)

View solution in original post

2 REPLIES 2
camargos88
Community Champion
Community Champion

@cbouichi ,

You can use Power Query for it. Just sort the values by inspectienummerTermijn and use the Fill Down/Up.

 

https://www.myexcelonline.com/blog/fill-values-using-power-query/

 

You can also create another column like:

Capture.PNG

 

VALUE_2 = CALCULATE(MAX('Table'[VALUE]), FILTER('Table', 'Table'[ID] = EARLIER('Table'[ID]) && 'Table'[VALUE] <> BLANK()))

 

Be aware with the aggregation function, I've used MAX, you may need another one or even add an index to this table and get the previous nonblank value.

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



thank you @camargos88 ,

 

fill down doesnt work in this senario because some of the value has to stay blank only the one with the same inspectienummerTermijn where a "oorzaak Group" is blank have to be filled

 

But i find a solution that worked for me. so i will place it here in cause somebody have the same problem.

 

Oorzaak =
VAR _id =
SELECTEDVALUE ( 'Meldingen&getCustominspecties'[InspectienummerTermijn] )
RETURN
CALCULATE (
MAX ( 'Meldingen&getCustominspecties'[Oorzaak (groups)] ),
FILTER (
ALL ( 'Meldingen&getCustominspecties' ),
'Meldingen&getCustominspecties'[InspectienummerTermijn] = _id
)
)

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors