ConradBI home

Home  /  How-to  /  Build visuals

Filters and tooltips

Keep a visual to the rows that matter, and show more about each bar when a reader rests the pointer on it.

The short version

  • Every visual has a Filters tab with three kinds of filter: By category, By fact and By Hu++. A row counts only when every filter holds.
  • By category works on the categories the visual shows: tick values, type a text to match, or keep a window of dates around today.
  • By fact compares a measure with a number, and tests the visual's totals, not single rows. Revenue > 100000 drops the regions whose total is 100,000 or less.
  • By Hu++ takes one condition over any column of the fact and its dimensions, written [Element].[Column].
  • The Tooltip tab, after Calculations, adds lines to what a bar, slice or cell shows when the pointer rests on it. Each line is a DAR-C calculation.
Back to How-to guides
In this guide
  1. What filters and tooltips are
  2. Before you start
  3. Your first filter: two regions
  4. By category: values, Like and Relative
  5. By fact: test the totals
  6. By Hu++: one condition
  7. How the filters add up
  8. Tooltips
  9. Calculations on one visual
  10. Reference lines on a chart
  11. When something goes wrong
  12. Reference

What filters and tooltips are

A visual counts every row of its fact unless you tell it otherwise. Its Filters tab tells it which rows to leave out: only two regions, only this year, only orders over a size. If you know Power BI, these work like the filters you set on one visual.

A tooltip is the small box that appears when the pointer rests on a bar, a slice, a point or a cell. It always shows that point's own figures. The Tooltip tab adds more lines under them, such as the units sold or the customers behind a bar, each a DAR-C calculation named as the tooltip should call it.

Both are saved with the visual. They hold wherever the visual is drawn: in its editor, on an Interactive Report, and in the desktop and web viewers. In the web viewer, the tooltip shows when the pointer rests on a mark.

Before you start

You need a visual whose fact, categories and measure are already picked. The Filters tab offers only what the visual defines, so it has little to show on a new, empty visual.

This guide uses the Revenue by Region bar chart from Choose a visual:

Setting Value
Fact Sales, with the measures Revenue, Cost and Units, and the column Channel
Categories Site · Region, then Site · Site Name as the drill level
Measure Revenue

The fact must be processed, because Load values reads the values from the processed data.

Your first filter: two regions

This takes about two minutes.

  1. Open Visuals, then Revenue by Region.
  2. Open the Filters tab. The line at the top says "No filters: the visual counts every row."
  3. In the By category group, click Add category filter.
  4. In the new box, pick Site · Region in the first list. Leave the second list on Values.
  5. Click Load values. The regions in your data are listed, each with a check box.
  6. Tick East and West. The chart redraws with two bars, and the note beside Load values reads "2 of 4 values ticked: a row passes with any of them."
  7. Press Ctrl+S to save.

Read back, the filter says: "Count a row only when its region is East or West."

The line at the top of the tab now names the filter and ends with "every one has to hold." With no value ticked, a category filter keeps every row.

By category: values, Like and Relative

A category filter works on one of the categories the visual defines: the categories on its Fields tab and its legend field. A bar chart by Region and Site Name offers those two and nothing else. To filter on a column the visual doesn't show, such as Year, use By Hu++.

The second list sets how the filter narrows:

Kind Keeps the rows whose value Example
Values Is one of the values you ticked East, West
Like Contains the text you type, or matches it as a pattern Park
Relative Is a date inside a window around today. Offered only for a date category Last 3 Months

Values

Load values lists the values that have rows in the fact. The box above the first value is Select all: it ticks every value shown, or clears them, and shows a dash while only some are ticked.

For a long list, type in Search. The list narrows to the values that contain your text, and Select all becomes Select all search results. Typing never changes a tick. The first tick you make while searching keeps only what is ticked among the results, unless Add current selection to filter is on: then the values you ticked before the search stay ticked as well.

A value you ticked that the data no longer holds stays in the list, ticked, so you can untick it.

Like

Like keeps the values that contain the text, ignoring capitals. With [*] or [_] in it, the text becomes a pattern over the whole value, where [*] stands for any run of characters and [_] for exactly one:

Like Keeps
Park Site names that contain Park, such as Park Lane and Hyde Park
Park[*] Site names that start with Park
[*]Park Site names that end with Park

As in Hu++, % and _ are ordinary characters here.

Relative

When the category is a date, such as Order Date · Date on a chart by day, the second list also offers Relative. Revenue by Region has no date category, so use By Hu++ there instead. Pick Last, Next or This, a number, and Days, Weeks, Months, Quarters or Years.

  • Last 7 Days is the seven days ending today.
  • Last 3 Months runs from the day after the same date three months ago through today. On October 31 that is August 1 to October 31.
  • Next counts forward from tomorrow.
  • This takes the calendar unit today falls in, and needs no number. This Weeks runs Monday to Sunday.

Today is the date of the computer that draws the visual.

By fact: test the totals

A fact filter compares one of the visual's measures with a number, such as Revenue > 100000. It is not tested on single order lines. The visual works out the measure for each thing it draws, the way it always does, and keeps only the ones whose total passes.

Say Revenue by Region shows these totals:

Region Revenue
East 300,000
North 150,000
South 120,000
West 80,000
  1. In the By fact group, click Add fact filter.
  2. Pick Revenue in the first list and > in the second, and type 100000 in the box.

West's total is 80,000, so West drops out. East, North and South stay, each with its full total: a large region keeps its small orders.

What counts as "a total" follows the visual:

Visual Each total tested
Bar Chart, Pie Chart Each category it draws. Drilled into East, each site
Matrix Each cell, a row header against a column header. A row or column with no passing cell drops off, and the subtotals add up the passing cells
Table Each row
Scatter Plot Each point
Card in Multi-Fact mode The whole fact

The first list offers the measures the visual shows: on Revenue by Region, only Revenue. The comparisons are =, !=, <, <=, > and >=. With several fact filters, a total has to pass all of them. A word in the number box leaves that filter off, and says "Not a number: this filter isn't applied."

By Hu++: one condition

The By Hu++ group holds one condition, written in Hu++, the language of the Row Filter step. Here it can name any measure or column of the fact and any column of its dimensions, written [Element].[Column]: [Site].[Region], [Sales].[Channel], [Order Date].[Year]. A column only one element has can stand alone, as [Channel].

The condition is tested row by row, on each order line, before anything is added up.

Condition Counts
[Sales].[Channel] = "Online" Online orders only
ISTHISCALENDARYEAR([Order Date].[Date]) This year's orders
[Order Date].[Year] = 2026 AND [Sales].[Channel] = "Store" Store orders in 2026
[Sales].[Revenue] >= 1000 Order lines worth 1,000 or more

Compare the last line with a fact filter Revenue >= 1000. The condition keeps the order lines worth 1,000 or more, then adds them up. The fact filter adds up every line, then keeps the regions whose total is 1,000 or more.

Type [ in the code window for a list of the columns, and see the code window in the Hu++ guide for the rest. A condition with a problem applies nothing, and the problem shows above the code window.

Tip: A Card in Multi-Fact mode has no categories, so By category has nothing to offer it. Use By Hu++ to keep a card to this year: ISTHISCALENDARYEAR([Order Date].[Date]).

How the filters add up

Every filter on the tab has to hold: each category filter, each fact filter and the condition. They narrow one another, never widen.

They also sit on top of what else narrows a visual:

  • The drill. Drilled into East, the chart counts East's rows only.
  • An Interactive Report. On a report, the report's own filters and the selections a reader makes on other visuals narrow it further. See Build an Interactive Report.

A filter with a problem applies nothing rather than blanking the visual: a fact filter with a word for its number, a condition with a mistake in it, or a filter on a column the visualizer doesn't hold.

A DAR-C calculation can choose which of these filters it keeps. Context.Visual() keeps the Filters tab's filters and Context.Report() lets them go. See contexts in the DAR-C guide.

Tooltips

Every visual that draws data points has a Tooltip tab after Calculations. The Image and the Text Block have no points, so they have none. Each line of the tooltip is a DAR-C calculation, written as the fact's are, and shows under the point's own figures as its name, a colon and its value.

To add the units sold and the customers to each region's tooltip:

  1. Open Revenue by Region, then the Tooltip tab, and click Add line. The new line goes to the top of the list on the left and opens on the right.
  2. Name it Units sold, write .Context.Value().AggregateFact(Sum, Units).Return();, and set its Format to Number with commas.
  3. Click Add line again, name it Customers, and write .Context.Value().LookupDimension([Customer].[Customer Name], ", ").Return();.
  4. Rest the pointer on a bar.

The tooltip shows the bar's own figures first, then one line per calculation, in the list's order:

Text
Units sold: 1,240
Customers: Ana Silva, Bo Chen, Carla Diaz
  • A measure, AggregateFact, is added up over the bar's rows the way the fact adds it up, and written in the line's Format.
  • A column, LookupDimension, lists its distinct values among the bar's rows, in the dimension's order, joined by the delimiter you give. Without a delimiter, a bar with several values shows a dash. The fact's own columns are written under the fact's name: [Sales].[Order Type].
  • Text of your own comes from a Compute. Three scripts — .Context.Value().AggregateFact(Sum, Units).SetQueryVariable(U);, .Context.Value().LookupDimension([Customer].[Customer Name], ", ").SetQueryVariable(C); and .Compute($"{[Query].[U]:#,##0} units for {[Query].[C]}").Return(); — read 1,240 units for Ana Silva, Bo Chen, Carla Diaz.
  • The order is the list's: drag a name, or press Alt+Up and Alt+Down. Delete line takes out the one picked. Ask Conrad, above the calculation, drafts a request about it.

A line counts the rows the point counts, so a filtered or drilled chart's tooltips match its bars; Context.Visual() reaches the whole visual instead, and RemoveDimensionFilter lets one grouping go. Text shows as it is; a number shows in the line's format. A line whose calculation has a mistake shows nothing until it is fixed; the message is under its box.

What a point is depends on the visual: a bar, a slice, a line's point, a scatter point, a card, a table row, or a matrix row header or cell. A matrix leaves the extra lines out at a level with more than 20,000 rows or cells, to keep the page light.

A visual saved before 1.2.58 listed fields instead of calculations. They open as lines that show what they showed, a column joined by ", ", and are kept as lines when the visual is next saved.

Calculations on one visual

The Calculations tab comes after Filters. It holds DAR-C calculations for this visual alone. Click Add calculation, give it an Alias and a Format, and write it as you would on the fact. It then appears in the visual's measure lists beside the fact's measures.

Above the list, What narrows this visual now shows the visual's categories, its drill and its Filters tab, and what each context keeps of them. Read it before you choose a context. Calculations on one visual in the DAR-C guide has the details.

Reference lines on a chart

The Bar Chart, the Multi Axis Line Graph and the Stacked Area Chart have a Reference lines tab after Calculations. A reference line is a DAR-C calculation whose one value is drawn across the plot as a dashed line, with its name and value at the end: a target, a budget, last year's total, an average to compare the bars against.

  1. Click Add reference line. The new line goes to the top of the list on the left and opens on the right.
  2. Give it a Name, pick its Color, and set a Format if the value should read differently from the axis.
  3. Write the calculation as you would on the fact: Context.Value().AggregateFact(Average, Revenue).Return(); draws the average, and Compute(1000000).Return(); a target of a million.

The line counts the same rows the chart does: the Filters tab, the drill you are in, and the filters of an Interactive Report the chart sits on. It has no categories of its own, so the value is one figure over all of them, as a Card shows one. The value axis stretches to show a line past the bars when its range is By Percent; a typed Min and Max may leave it off the chart. On the line graph and the area chart the line sits on the first left axis (the first right one when there is none on the left). Drag the names to reorder the lines, Delete reference line removes the one you picked, and Filter by name at the bottom narrows a long list.

When something goes wrong

What you see What to do
"This visual defines no category yet: pick its categories on the Fields tab first." By category works on the visual's own categories. Pick them on the Fields tab, or use By Hu++
"This visual defines no measure yet: pick its measures on the Fields tab first." Pick the measure on the Fields tab before you add a fact filter
Load values lists nothing, and the note says "The data holds no values for this category" The fact hasn't been processed, or isn't in the visualizer yet. Process the project, then click Load values again
"The values couldn't be read from the visualizer: …" The rest of the message says why. Process the fact and try again
"Not a number: this filter isn't applied." Type a plain number in the fact filter's box, such as 100000
A message above the Hu++ code window The condition has a mistake and applies nothing until it is fixed. See the Hu++ troubleshooting table
A reference line isn't drawn Its calculation has a mistake (the message is under its box), it has no name yet, or its value is past the axis's typed Min and Max. On the line graph and the area chart, check that its axis isn't hidden in the legend
The column you want isn't in the category filter's list It isn't one of the visual's categories. Name it in By Hu++ instead
Relative isn't in the second list The category isn't a date. Pick a date category, or write a date condition in By Hu++
A fact filter drops whole regions, not single orders That is what a fact filter does: it tests totals. To leave out single order lines, use By Hu++
"No values match the search." No value contains the text in Search. Shorten it or clear it
A tooltip line shows a dash The point has no value for that line, or its LookupDimension found several values and was given no delimiter
A tooltip line doesn't show at all Its calculation has a mistake (the message is under its box), or it has no name yet

Reference

The Filters tab

Control Where What it does
Add category filter By category Adds a filter on one of the visual's categories
Values, Like, Relative A category filter's second list How the filter narrows. Relative shows for a date category only
Load values Values Lists the values that have rows in the fact
Search Values Narrows the list to the values containing the text. Changes no ticks
Select all Values Ticks every value shown, or clears them
Add current selection to filter Values, while searching Keeps the values ticked before the search
[*], [_] Like Any run of characters, and exactly one character
Last, Next, This Relative The window's direction. This needs no number
Days, Weeks, Months, Quarters, Years Relative The window's unit
Add fact filter By fact Adds a measure against a number, tested on the visual's totals
= != < <= > >= By fact The comparison
The code window By Hu++ One Hu++ condition, tested on each row
✕ Every filter Removes that filter

The Tooltip tab

Control What it does
Add line Adds a line at the top of the list and opens it
Name What the tooltip calls the line
Format How a number the line gives is written; text is written as it is
The code window The line's DAR-C calculation: LookupDimension for a column's values, AggregateFact for a measure, Compute for text of your own
Delete line Takes the line picked out of the tooltip
Dragging a name, Alt+Up, Alt+Down Move the line up or down the tooltip
Filter by name Narrows a long list

Missing something?

Tell us what you were trying to do and what this guide didn't answer. We update it with every release.

Write to us

What changed in this guide

  • November 21, 2026: Reviewed against ConradBI 1.2.59.
  • October 31, 2026: First edition, written for ConradBI 1.2.52.