Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a csv file in the below format:
Timestamp Vehicle speed Fuel Level RPM
Timestamp Fuel Level
4/3/2016 12:28 49.2
4/3/2016 12:30 48.8
4/3/2016 12:32 48.8
4/3/2016 12:35 0
4/3/2016 12:37 0
4/3/2016 12:39 0
4/3/2016 12:40 48.8
4/3/2016 12:45 48
In the above table the fuel level goes to zero. I would like to replace the zeros with the pervious row value.
Any help is appreciated.
Thank you.
Solved! Go to Solution.
are they nulls or 0
if 0 then replace them with null as below and use Fill option with Down
here is the final result
hope this helps
are they nulls or 0
if 0 then replace them with null as below and use Fill option with Down
here is the final result
hope this helps
what if I have the exact scenario in a calculated table? how can I use FILL option in DAX? I am trying usnig EARLIER or EARLIEST without success.
Hi @Anonymous,
Show your data and the expected result.
please, see below what I have and what I need, using DAX.
attention to holidays midweek.
| date | weekday | values I have | values I need |
| 01/nov | Wednesday | 1 | 1 |
| 02/nov | holiday | 1 | |
| 03/nov | Friday | 2 | 2 |
| 04/nov | Saturday | 2 | |
| 05/nov | Sunday | 2 | |
| 06/nov | Monday | 3 | 3 |
| 07/nov | Tuesday | 4 | 4 |
| 08/nov | Wednesday | 5 | 5 |
| 09/nov | Thursday | 6 | 6 |
| 10/nov | Friday | 7 | 7 |
| 11/nov | Saturday | 7 | |
| 12/nov | Sunday | 7 | |
| 13/nov | Monday | 8 | 8 |
| 14/nov | Tuesday | 9 | 9 |
| 15/nov | holiday | 9 | |
| 16/nov | Thursday | 10 | 10 |
| 17/nov | Friday | 11 | 11 |
| 18/nov | Saturday | 11 | |
| 19/nov | Sunday | 11 | |
| 20/nov | Monday | 12 | 12 |
| 21/nov | Tuesday | 13 | 13 |
Hi,
I don't think i can solve this in DAX. Thr easiest way would be to use the Query Editor.
Hi, I want to replace my blanks into word "Blanks" so that I can show them in the slicer as blanks itself as one line item, is it possible ??
I have list of word in the 1st column
column1
Apple
Bag
Car
<- Blank
Echo
Expecting Output:
column
Apple
Bag
Car
(Blank)
Echo
Thank you in advance
Hi @Vipin,
You need to:
- Go to the query editor, click on the "Level" column and transform its type to text instead of number --> this will let you catch all zeroes
- Add a custom column "Level_New" having the following syntax: if [level]="0" then "" else [level] --> this will let you replace all zeroes with blanks
- Change Level_New type to decimal number --> this will give the value null to all blank fields
- Select the column Level_New and under Transform/Any Column, click on Fill/Down --> this will fill all null fields with the value of the field above
Hope it helps!
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 |
|---|---|
| 50 | |
| 44 | |
| 42 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 33 | |
| 32 | |
| 32 |