Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

Transitioning PowerBI report from tabular data to using row-level data



I have recently developed and published a few Power BI reports using some of our different sources of data (here is a link to one of those dashboards for reference: here. Currently, our team is aggregating the data and setting up tables for each of the variables (i.e. age category, sex, etc.) by municipality and year. The main reason for this is due to restrictions that do not allow us to share data when counts are less than 5 (excluding 0). For example, if a municipality has 3 incidents among females in 2016, we must display "<5" rather than the true value. I currently have codes in place using tabular editor, creating calculation groups for each municipality, and formatting string expression to display the "<5" label where applicable. It works great however, we are hoping to transition the Power BI reports to read row-level data rather than setting up the aggregation tables and having to update them periodically throughout the year. My main questions are: Is it possible to use the row-level data to display counts AND percentages when counts are less than 5 as "<5"? Is it possible to recode all those values <5 as "1" (or something else) so true values aren't displayed on the actual graphs? Is it possible to display zeros when values are zero? Below is a link to a mock dashboard I created in order to get an idea of the data, coding, and set up. 

Super User
Super User

You could use calculation items applied to the whole report along the lines of this:

    IF ( Val > 0 && Val < 5, 1, Val )

This should still treat zeros as zeros.


It's harder when you have percentages too because you need a way to distinguish which measures are which. If everything is either a count or a percentage then you could deal with it like this:

    SWITCH (
		TRUE (),
		Val = 0, 0,
		Val < 0.05, 0.01,
		Val IN { 1, 2, 3, 4 }, 1,

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors