Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone.
I need some help here.
My raw data is shown below
In case of any blank in "Deviation" column, I want to replace it with the data in previous available week for the project.
In order to do that I created a calculated column "Filled_deviation":
Filled_Deviation = VAR CAL = CALCULATE ( FIRSTNONBLANK ( 'Table'[Deviation], 'Table'[Deviation] ), FILTER ( ALLEXCEPT ( 'Table', 'Table'[Title] ), EARLIER ( 'Table'[WeekNum] ) > 'Table'[WeekNum] ) ) RETURN IF ( ISBLANK ( 'Table'[Deviation] ), CAL, 'Table'[Deviation] )
and got this result:
As you can see, this formula works almost fine except for a couple of projects:
project 2 should have "0" for the 16th week,
project 14 should have "10" for the 16th week,
and project 18 should have "11" for that week.
This is my .pbix file if you need it: https://drive.google.com/open?id=1k_DpRupUxGiMHr70FfZl2OT4FetjRBSp
Tell me please what I'm doing wrong.
Any help would be very appreciated.
Hi @Demidovich,
On the query editor choose the deviation column and fill down should work as you need.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |