Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
There is freely available data on the official website of the US Department of Agriculture on the content of vitamins and minerals... for all products. https://fdc.nal.usda.gov/download-datasets
I'm trying to download and convert the data "Full Download of All" CSV 449M, but I can't even visualize it, let alone understand where to look for "Turkey Meat" and what is included in 100 grams.
I would like to get a visualization like in the picture.
Help me, how to make such a visualization step by step and save the data in an acceptable format for each member of my family, well, and for all interested participants of this forum.
Respectfully,
Evgeny
How to summarize and visualize all the kilocalories, proteins, fats, carbohydrates and other macro- and micronutrients in the products that you ate and drank throughout the day from the reference values of the norm?
For all family members?
Thank you very much Mr. Zhu!
Found something similar in a spreadsheet 400 kb https://sourceforge.net/projects/nutritional-tables/
But how to convert it to Power BI?
Hi @Anonymous ,
Minerals as an example, first of all in Excel on the data to carry out simple processing, delete unnecessary rows:
After getting the data from EXCEL, click Transform data in Power BI to enter Power Query Editor. Select the columns other than minerals and unpivot them:
Do the same for the other table:
Merge two tables together:
Create a measure to get the ratio to the reference value:
Percentage = DIVIDE(MAX('Minerals_Merge'[Value]),MAX('Minerals_Merge'[Minerals.Value]))
Create the visual as shown:
You can also create slicers to filter for different things, minerals, people, etc.
Result:
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much dear Mr. Zhu!
Allow me not to mark your comment as a solution yet?
I want to understand how to sort all the data correctly.
Start learning M language in Power Query?
Thanks again, you spent your time!
Hi @Anonymous ,
According to the link you provided, I imported the three tables: food ,food_nutrient and nutrient, and due to the large amount of data, I'm only using some of them:
Create relationships for the three tables:
Then create a measure:
Result:
You can modify it to suit your specific needs, the links related to data modeling are as follows:
Understand star schema and the importance for Power BI - Power BI | Microsoft Learn
Data reduction techniques for Import modeling - Power BI | Microsoft Learn
Best Regards,
Zhu
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
79 | |
53 | |
39 | |
39 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |