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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.