Waffle Plume: correct percentages, pictograms, targets and SVG
Waffle Plume use cases: a rate computed on a total, one waffle per category, pictograms, the year-by-year change, a target, your own SVG icons and small multiples.
Lire en françaisThese recipes reuse the Sales table and the Revenue and Web share measures of the getting started page. Recipes marked ★ use a premium feature: they work without a key, with a "Premium preview" watermark.
How do I show a rate computed on a total?
You have the number of positive answers and the number of answers received, and you want the waffle of the rate without writing a division.
- Drop the positive answers measure in Value.
- Drop the answers received measure in Total (100%).
- The waffle colors positive ÷ received: 412 out of 528 gives 78 cells and "78%" in large type. The tooltip shows the total.
Without a Total field, a measure formatted as a percentage is read as is. To force another rule: Format › Layout › Waffle › Percentage computed (Value is a ratio, Value in points, Share of the sum of the categories, The largest value = 100%).
How do I make one waffle per category?
One waffle per survey question, each with its percentage.
- Drop
Questionin Category, the positive answers in Value and the answers received in Total (100%). - Format › Layout › Waffle › Mode: Percentage: one waffle per category.
- The waffles sit side by side, each with its percentage in large type and the question name. Waffles per row sets how many waffles per row (0 = automatic).
How do I share one waffle between several measures?
You have three measures: tasks done, in progress, to do (as a percentage of the total).
- Drop the three measures in Value, with nothing in Category.
- Each measure becomes a part of the same waffle, with its name in the legend.
- Fill order = Column by column, from the bottom: the waffle reads like a rising bar.
- To write the share of the first measure (tasks done) in large type: Headline value › Single waffle (Parts mode) = Percentage of the first category (the default, free); No headline value removes it.
How do I show a headcount as pictograms ★?
One person for 5 employees, one row per department.
- Drop
Departmentin Category and the headcount measure in Value. - Layout › Waffle › Mode: Units: 1 cell = N units (pictograms) ★; Value of one cell: 5.
- Cells › Cell shape: People · Person (free).
- Each department gets its row of people, its name at the start, its headcount at the end; the key "= 5 · Headcount" is at the bottom. Columns (cells per row) sets how many people per line before wrapping. Department names are set in the Category labels card (size, bold, category color, Maximum width (% of the visual)); when hidden, rows take the whole width.
How do I watch the parts change year by year ★?
The Web cells fill from one year to the next while the store cells empty.
- Add a
Yearcolumn to the table and drop it in Play axis ★; keepChannelin Category andRevenuein Value. - A play bar appears under the waffle. Click ▶: at each year, the cells that change switch one by one in fill order; the legend follows the year.
- Format › Playback ★: Frame shown on opening (The first one or The last one (most recent)), Duration of a frame (ms), Loop. The slider and the keyboard arrows move from one year to the next.
The play axis is a ★ feature: it works without a key, with the "Premium preview" watermark as soon as the field holds data. With Style › Animations off (or Windows "Show animations" off), frames change without animation.
How do I show a target ★?
Your coverage rate is 43.6% for a 60% goal.
- Drop the rate measure in Value and the goal measure in Target ★.
- The target cell is circled and the cells still missing to reach it are dashed; "Target: 60%" is written under the value, with "✓" once it is reached.
- Format › Target ★ › Marker: Circled cell only to remove the dashes.
How do I partly fill the last cell ★?
43.6%: 43 full cells and 60% of the 44th.
- Format › Cells › Last cell: Partly filled (exact fraction).
- The piece follows the fill direction (left to right, or bottom to top in columns). In Parts of a whole mode, a cell can be shared by two categories.
How do I use my own SVG icons ★?
One icon for the whole waffle, or a different icon per category.
- One icon: Format › Cells › Cell shape: Pasted SVG (below) ★, then paste the code in Pasted SVG ★, for example:
<svg viewBox="0 0 24 24"><path d="M12 2C6 8 4 14 12 22C20 14 18 8 12 2Z"/></svg>
- One icon per category: create a text measure that returns an SVG for each category and drop it in SVG icon ★:
Channel icon =
SWITCH (
SELECTEDVALUE ( Sales[Channel] ),
"Store", "<svg viewBox='0 0 24 24'><path d='M3 10L12 3L21 10V21H15V14H9V21H3Z'/></svg>",
"Web", "<svg viewBox='0 0 24 24'><path d='M2 4H22V17H2Z'/></svg>",
BLANK ()
)
- The icon takes the color of its category. The SVG is cleaned (scripts, links and images removed); a web address is never loaded.
How do I make one waffle per region ★?
The channel shares, one waffle per region.
- Keep
Channelin Category andRevenuein Value, then dropRegionin Small multiples ★. - Each region gets its own titled waffle, with the same colors; the legend is shared.
- A click on a cell filters the page on the channel and the region. Layout › Categories and waffles › Waffles per row sets the layout.
How do I give each category a different shape?
- Format › Data colors: under each category, pick its Shape (for example Basic · Heart, Nature and weather · Drop).
- Same as the Cells card uses the general shape. The 22 free shapes never show a watermark; the others are ★.
Going further
- Getting started
- Fields and settings
- Dynamic formatting (DAX): drive a setting with a measure, for example
layout.mode. - Getting started with Plume visuals