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
JD09
Advocate I
Advocate I

Line and Stacked Column Chart - Display Min & Max Value of Data Label

Hello,
I have a scenario, Which should displays the Min and Max value of a Data label (When X-Axis is a Hierarchy Column). 

Conditions:

1. X-Axis - Date Hierarchy

2. Y-Axis - Sales
Dataset Used - Sample Dataset from Power BI Desktop (Financials)

DAX Used : 
1. 

Date_getMinSales =
Var getDates = ALLSELECTED(financials[Date].[Date])
var getMinSales2 = MINX(getDates,[TotalSales])
RETURN
IF(
    [TotalSales]=getMinSales2,
    getMinSales2,
    BLANK()
)
2.
Date_getMaxSales =
Var getDates = ALLSELECTED(financials[Date].[Date])
var getMaxSales2 = MAXX(getDates,[TotalSales])
RETURN
if(
    [TotalSales] = getMaxSales2,
    getMaxSales2,
    BLANK()
)

Note: When X-Axis is a Single Category, I am getting the Min & Max Value of Data Label.
Thanks in Advance!!

2 REPLIES 2
JD09
Advocate I
Advocate I

Hi @v-binbinyu-msft 

I want to only plot/ display The Min & Max Data Label On Line. Please refer Screenshot.

This scenario 
Note: X -Axis is a Date Hiearchy.

JD09_0-1709285555766.png

 

Thank You!!

v-binbinyu-msft
Community Support
Community Support

Hi @JD09 ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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.