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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
SammyNed
Helper I
Helper I

Graph with only specific columns showing

Good Day

 

It is possible to have a graph in powerbi showing 3 (or more months), but only showing the target/forecast data for the current month?

 

raw data is similar to the below, Actual, Forecast and Target per month.

SammyNed_0-1715602977665.png

 

Final graph to look as below, only showing all 3 data points for the current month, and only the actual data for previous months. The reason is to make the graph look less cluttered and only show the valuable data points (i.e no need to see the target from 2 months ago but we want to see the trend of the actuals over).

SammyNed_1-1715603030255.png

 

Is this possible

 

Thank you in advance

 

1 ACCEPTED SOLUTION
KeyurPatel14
Responsive Resident
Responsive Resident

Hello @SammyNed ,

Hope you are doing well.

 

Kindly find the dataset I created:

KeyurPatel14_0-1715757482676.png

Measures:

KeyurPatel14_1-1715757525554.pngKeyurPatel14_2-1715757549929.png

Result:

KeyurPatel14_3-1715757581411.png

If this helps, then kindly give it a kudos and mark it as a solution.

Best Regards,
Keyur Patel

View solution in original post

5 REPLIES 5
KeyurPatel14
Responsive Resident
Responsive Resident

Hello @SammyNed ,

Hope you are doing well.

 

Kindly find the dataset I created:

KeyurPatel14_0-1715757482676.png

Measures:

KeyurPatel14_1-1715757525554.pngKeyurPatel14_2-1715757549929.png

Result:

KeyurPatel14_3-1715757581411.png

If this helps, then kindly give it a kudos and mark it as a solution.

Best Regards,
Keyur Patel

Much appreciated 😊

Works perfectly

v-yilong-msft
Community Support
Community Support

Hi @SammyNed ,

I create a table as you mentioned.

vyilongmsft_0-1715652744877.png

Then I create two measures and here are the DAX codes.

 

Forecast Measure = IF(SUM('Table'[Forecast])=286,286,0)

Target Measure = IF(SUM('Table'[Target])=256,256,0)

 

vyilongmsft_1-1715652940150.png

Finally I put them into the Clustered column chart and it gives the result you want.

vyilongmsft_2-1715653083592.png

vyilongmsft_3-1715653119091.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @v-yilong-msft 

 

This appears to be on the right track, however its not dynamic. Is it possible to include a filter to say only show the forecast data if it occurs within the current month. i know i can use EOMonth, but unsure how to incoroprate it

Forecast Measure = IF(SUM('Table'[Forecast])=CurrentMonth,forecast,0))

 

SamInogic
Super User
Super User

Hi @SammyNed 

As per our understanding, you want the Actual, Forecast, and Target need to be display to get a trend on the power BI report, so we could suggest to use Line chart where you can compare these Actual, Forecast, and Target by each month.


SamInogic_0-1715604890780.png

 

Thanks!

Inogic Professional Service Division

An expert technical extension for your techno-functional business needs

Power Platform/Dynamics 365 CRM

Drop an email at crm@inogic.com

Service:  http://www.inogic.com/services/ 

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Drop an email at crm@inogic.com
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.