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
As a new user of Power BI, I would really appreciate some help when importing a PDF into Power BI. I am importing a very simple table showing Sweden's GDP by year. However, when I import, two issues arise.
1 A comma is not recognised so $478,2 becomes $4782. I have just been using the replace function and changing this one by one, but this would be challenging if there were hundreds of changes to make. Is there a quicker solution?
2 Several of the data cells are imported as 'Null' for some reason. I think it may have something to do with the grey shading from the year 2020. This means when I try and use the replace function, all the null cells change to the same value which I obviously do not want. I have been searching for a solution but do not understand the workaround which seems complex to me. Oh, I wish I could just edit an individual cell.
I think the ability to import PDFs is going to be very useful and so I am keen to understand how to tidy up data.
Can someone please explain simply how to edit these null values.
Thank you
Ray
Solved! Go to Solution.
Two things:
Links below on posting tables here for us to use.
How to get good help fast. Help us help you.
How To Ask A Technical Question If you Really Want An Answer
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi @RayAlgar ,
If you want to replace each null value into different specific values for each year, you may try to use if statement to create new custom column and remove the previous column.
= Table.AddColumn(#"Changed Type", "Custom", each if [Column2] <> null then [Column2]
else if [Column1] = 2015 then 10 else if [Column1] = 2016 then 20 else 0)
It would be complicated when there are too many years.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Two things:
Links below on posting tables here for us to use.
How to get good help fast. Help us help you.
How To Ask A Technical Question If you Really Want An Answer
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link, or share an Excel/CSV file via OneDrive, Dropbox, etc.. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThanks for getting back to me.
The data was coming in as two columns. Column one as year and column two as GDP.
I am attaching a link to the file but not quite sure whether this is read-only or editable. This is the initial import.
https://www.dropbox.com/s/0s9116cbkc05atv/sweden%20gdp.pbix?dl=0
Hi @RayAlgar ,
If you want to replace each null value into different specific values for each year, you may try to use if statement to create new custom column and remove the previous column.
= Table.AddColumn(#"Changed Type", "Custom", each if [Column2] <> null then [Column2]
else if [Column1] = 2015 then 10 else if [Column1] = 2016 then 20 else 0)
It would be complicated when there are too many years.
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering 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.