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
Anonymous
Not applicable

Find the measure to calculate exact value for each Province

Hi All,

I have data like below. I use the measure :

VLTH Accumulated Launched Units =
    CALCULATE(
        TOTALQTD(SUM(VLTH[Total_Launched_Units]), 'Calendar'[DATE]),
        Project[Sector] = "VLTH"
    )
 

 VLTH Launched Units Last  =
SUMX (
VALUES ( Project[City] ),
CALCULATE (
LASTNONBLANKVALUE ( 'Calendar'[DATE], VLTH[VLTH Accumulated Launched Units])
)
)
The data show :

Pic 1.PNG

I want to find the measure to calculate the Lauched Unit Last for Provinces which have a beach ( Example : Khanh Hoa Province, Quang Ninh Province ) base on the measure VLTH Launched Units Last Value .

Launched Units Last Coastal =CALCULATE(VLTH[VLTH Launched Units Last], Project[City] IN {"Quang Ninh Province","Khanh Hoa Province"})


But the data show:

Pic 2.PNG

I know it wrong but can't fix it . Please help me how to seperate the result of Quang Ninh Province and Khanh Hoa Province  in the data .

2 ACCEPTED SOLUTIONS
johnt75
Super User
Super User

Try

Launched Units Last Coastal =
CALCULATE (
    VLTH[VLTH Launched Units Last],
    KEEPFILTERS ( Project[City] IN { "Quang Ninh Province", "Khanh Hoa Province" } )
)

View solution in original post

Anonymous
Not applicable

Thank you johnt75 so much !😀

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

Try

Launched Units Last Coastal =
CALCULATE (
    VLTH[VLTH Launched Units Last],
    KEEPFILTERS ( Project[City] IN { "Quang Ninh Province", "Khanh Hoa Province" } )
)
Anonymous
Not applicable

Thank you johnt75 so much !😀

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.