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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.