Dear all
I am new to PowerApps and am working on a custom app based on a custom SharePoint List.
See also screenshot attached for additional info.
Situation
I have linked a SharePoint list which is a daily reporting tool and includes the following columns:
- Manufacturer Serial Number (MSN) (Choice)
- Task (Multiple-Choice)
- Type of Entry (Choice)
- Description (Multiple lines of text)
- Risk Level (Choice)
- Need for Action (Yes/No)
- Next Action (Date)
- Comments (Multiple lines of text)
- Created (Date)
- Created by (Person)
In order to provide some quick overview on some key columns, I am creating graphs for the following:
- Type of Reports (based on value of "Type of Entry" column) - Pie Chart
- Risk Levels Overview (based on value of "Risk Level" column) - Column Chart/Bar Chart
- Need for Action Overview (based on value of "Need for Action" column) - Column Chart/Bar Chart
Problem
Whenever I try to create a graph, the only columns for selection are "Need for Action" and "Next Action". All other columns are unavailable/not visible, so I cannot include them in the graphs.
Bypass
I have bypassed this issue with the following function for all of them (example given is for pie chart):
Table(
{Col: "Risk alert", Value: CountRows(Filter('Daily Project Report', 'Type of Entry'.Value = "Risk alert"))
},
{Col: "Achievement", Value: CountRows(Filter('Daily Project Report', 'Type of Entry'.Value = "Achievement"))
},
{Col: "Information only", Value: CountRows(Filter('Daily Project Report', 'Type of Entry'.Value = "Information only"))
}
)
This seems to work for both pie charts and bar charts. However, also brings some other problems:
Bypass Problem
This function works great for the pie chart, however, it does not work well on the bar charts in terms of labels. The bar chart is displayed correctly, however, the labels are missing. It only provides one label named "Value" (see screenshot)
Question
- Why are my columns not available for selection when creating a graph?
- For the current situation with the bypass: How can I fix the issue that the bar charts do not show the right labels?
Thank you very much in advance for your assistance. If you have questions, I would be happy to answer them.
Regards
G