Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
SALutions
Regular Visitor

DAX: Filter one of two fields on same visual

We are atempting to show two values on a time graph by month. One value to show actual revenue for past months and the other value to show estimated revenue for future months. The issue is; when the current month is not over yet, it shows the actual value in that month which we do not want, but only estimated revenue for current and future months. (Can't show actual revenue until month is closed)  We cannot filter out actual revune because it reacts with the estimated value as well and are left with nothing, estimated or actual, after that filter date. How could we solve? 

Need to show black until end of March and blue after March.

Black = Actual Revenue 

Blue = Estimated Revenue

 

2016-04-11 16_20_31-Start.png

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

Hi @SALutions,

 

According to your description, you don't want to show actual values until current month has passed. Right?

 

In this scenario, you can add a calculated column to replace all Revenue in current month into '0'. Please refer to expression below:

 

=IF(table[month]=month(today()),0,table[Revenue])

 

Then you can include this calculated column into your chart.

 

Regards,

Thank you for your reply! You are correct, I do need to filter out current month's actual revenue. Your solution seems viable but to avoid some overhead with calculated columns, we would like to try and solve with an Actual Revenue measure by filtering the dates somehow instead. Any ideas?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors