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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RvdHeijden
Post Prodigy
Post Prodigy

Calculating 2 variables

I hope someone can help me.

 

I have a table in which we have a lot of orders and a certain value.

To put it simple i need a formula that does the following.

 

I want the amount of orders i have in a certain City that have a certain value.

For example i want the number of orders with the status 'Actief' in 'Amsterdam'

 

Pretty simple right ?

 

I made a 'new table' with 3 colums

Column A ] unique value of City based on info from another Table (using summarize)

Column B] the number of adressen in City Column A

Column C] the number of Active clients in City Column A.

 

How can i calculate the value of Column C ? i need to look in the table 'EFOS' (detailled table) 

Here you see the new table i made and the colum 'Aantal Actief' has the error in it.

 

On the right you see a part of the other table

 

2018-03-20_1619.png2018-03-20_1621.png

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

HI @RvdHeijden

 

Try this one with small modification

 

Aantal Actief =
VAR myPlaats = Woonplaats[plaats]
RETURN
    CALCULATE (
        COUNTROWS ( EFOS ),
        EFOS[Plaats] = myPlaats,
        EFOS[Adres status] = "Actief"
    )

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

HI @RvdHeijden

 

Try this one with small modification

 

Aantal Actief =
VAR myPlaats = Woonplaats[plaats]
RETURN
    CALCULATE (
        COUNTROWS ( EFOS ),
        EFOS[Plaats] = myPlaats,
        EFOS[Adres status] = "Actief"
    )

Regards
Zubair

Please try my custom visuals

@Zubair_Muhammad it looks like that did the trick, im going to crosscheck it but it looks good

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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