Power BI – Creating a Custom Smart Narrative

Last modified date

Power BI desktop includes the Smart Narrative visual. This will summarise a page or visual in your report for you. Often though the summary it produces is not the summary you would have written. This post will show you how to write your own custom smart narrative that updates and filters exactly the same as the standard smart narrative.

YouTube Version

thumbnail from YouTube

What is the Smart Narrative?

With a report open in Power BI desktop, you can add a standard Smart narrative by selecting Smart Narrative from the Insert ribbon. It will create text based on the visuals on that page. It doesn’t support all visuals and although can be very good it is very generic.

Screen shot of the insert ribbon highighting the smart narrative button and a screen shot of an example standard smart narrative

More instructions and information can be found at https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-smart-narrative

Create your own custom smart narrative

The smart narrative is a text box with some generated text added. The clever part is adding values to that text box.

Start by adding a text box to your report. Position it and start to add some text.

When you want to add a dynamic result to the text click on the Value button on the Text box ribbon. Describe what you would like to calculate. If the dialog offers suggestions as to what you mean click on the correct one. When you click Save, the value will be entered into the text box.

screen grans showing the stages of adding a value to the custom smart narrative

Formatting to numbers could be applied when creating a text box value. Weirdly you cannot use the same name for values in different text boxes unless you copy and paste the text box then its fine. The values cannot transfer into any other visual either, use measures for that.

Reviewing the Values

When you added values to your custom smart narrative you hopefully remembered to name them. This helps when you go to review the values. Click on Review to list the values. You can click on edit on any value to confirm what question you asked, rename or apply extra formatting

reviewing values used in your text box

Resources

The report and the data source used in this blog post can be found on my Github

Conclusion

Know your audience, does a summary paragraph work for them? If it doesn’t then stick to visuals that work for them. Some clients love a description others just prefer a batch of cards showing the same values.

Over 20 year experience at being passionate about training, solving problems and loving a new challenge especially in the Microsoft's Power Platform suite.