Power BI - Basics
Power BI - Basics
Power BI - Basics
basics
Power BI Desktop interface elements Source: Deckler (2022)
Views
• There are three different views available:
• Report: The Report view allows for the authoring of reports through the creation of
visualizations on one or more pages.
• Data: The Data view provides an interface for exploring the data contained within the
individual tables of a data model.
• Model: The Model view provides an overall look at all of the tables in the data model
and how those tables relate to one another.
• Year = YEAR([Date])
• MonthNum = MONTH([Date])
• WeekNum =
WEEKNUM([Date])
• Weekday =
FORMAT([Date],"dddd")
• WeekdayNum =
WEEKDAY([Date],2)
• IsWorkDay =
IF([WeekdayNum]<=5 ,1, 0)
• The(2022)
Source: Deckler IF function works identically
Formatting columns
• Date column, Column tools tab
• Data type
• Format
3
1
Formatting your visualization
1
Let's create two additional visuals:
1. For the first visual, drag the Weekday column in the Fields pane onto a blank area of the canvas. Note that a single-column table of the distinct values
for the days of the week appears.
2. Drag the Date column from the Fields pane into this new visual. Four columns are automatically created for Year, Quarter, Month, and Day. As
before, change this from Date Hierarchy to just Date.
3. Change this visual to Clustered bar chart. That is the third visual over in the top row.
4. In the Fields sub-pane within the Visualizations pane, drag and drop Date from the Legend field to the Values field. Note that the text changes to
Count of Date.
5. Drag the visual so that the top of the visual lines up with the top of our original column chart visual and then resize it so that this visual extends to the
middle of the page horizontally and all of the way to the bottom of the page.
6. Notice that the weekdays are not in order. Use the ellipsis (...) in the visual to change Sort by to Weekday and Sort ascending.
7. Click on the Weekday column in the Fields pane and then, from the Column tools tab, choose the Sort by column and then WeekdayNum. This new
visual now displays Monday at the top and Sunday at the bottom.
8. Finally, format this visual to display Data labels.
9. Click on a blank area of the canvas and select the Card visual. This is the visual in the fourth row from the top and farthest to the right.
10. Drag Date from the Fields pane into this visual.
11. In the Fields sub-pane of the Visualizations pane, use the drop-down arrow next to Earliest Date and change this to Count.
12. Lastly, reposition the Card visual to be in the center of the blank area of the canvas and resize the visual to be just big enough to fully display the
Count of Date text.
Editing visual interactions
• With Monday selected in the bar chart, hover your mouse over July again, but, this time, hold down the Ctrl
key and then click the July column. Note that the Card visual changes to read 5. By using the Ctrl key, we
can make values selected within visuals additive with one another.
Editing visual interactions
• One icon looks like a column chart
with a small funnel, and the other is a
circle with a line through it. If you
hover over these icons, you will see
that the chart icon is called Filter and
the circle icon is called None. The icon
that is shaded in gray is the currently
active interaction mode.
Thank You