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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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