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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
descud
Frequent Visitor

First date with another color

Good morning,

 

I have a table of items with values and I want to make a chart that shows me the values of the first date with another color. Can you help me?

 

Example:

ITEM    DATA        VALUE

   A       1/1/2021    10

   A      15/2/2021    2

   A      15/3/2021    3

   B       1/2/2021     5

   B       14/4/2021   1

   B       15/5/2021   2

 

EX.JPG

 

Thanks,

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You can make this with the Charticulator visual and the two measures shown.

 

mahoneypat_0-1624143864420.png

First Value = FIRSTNONBLANKVALUE(FirstBarChart[DATA], CALCULATE(MIN(FirstBarChart[VALUE])))
 
Total = SUM(FirstBarChart[VALUE])
 
 
If needed, the template file for the Charticulator visual is attached.  I couldn't attach a .tmplt file directly, so take the text from the Word doc, put it in notepad and save it with an extension of .tmplt.  You can add that visual to your report from AppSource (Free), and then import this template file and map your data (the column and the two measures).
 
Pat
 
 
 




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

You can make this with the Charticulator visual and the two measures shown.

 

mahoneypat_0-1624143864420.png

First Value = FIRSTNONBLANKVALUE(FirstBarChart[DATA], CALCULATE(MIN(FirstBarChart[VALUE])))
 
Total = SUM(FirstBarChart[VALUE])
 
 
If needed, the template file for the Charticulator visual is attached.  I couldn't attach a .tmplt file directly, so take the text from the Word doc, put it in notepad and save it with an extension of .tmplt.  You can add that visual to your report from AppSource (Free), and then import this template file and map your data (the column and the two measures).
 
Pat
 
 
 




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Jihwan_Kim
Super User
Super User

Hi, @descud 

Please check the below picture and the sample pbix file's link down below.

 

Picture1.png

 

First Date Value total Measure =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', DAY ( 'Table'[Date] ) = 1 )
)
 
 
NOT First Date Value total Measure =
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( 'Table', DAY ( 'Table'[Date] ) <> 1 )
)
 
 
 
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

I'm sorry but the first day could be different from 1. It could be any day of the year.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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