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
EEEhernan9
New Member

Ayuda!!!! Para crear medida para calcular ingresos totales por cliente

Tengo una tabla en excel como la siguiente:

EEEhernan9_0-1675014964191.png

 

Lo que quiero hacer es calcular el costo total de los ingresos del mes, así como una medida que me permita conocer los ingresos totales por cliente, y que estos ingresos por cliente se puedan presentar en un grafico de barra. Los costos se van actualizando por dia y se van agregando conforme es necesario.

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @EEEhernan9 ,

 

You can create the following measure:

Revenue =
CALCULATE (
    SUM ( 'Table'[Ingresos] ),
    FILTER (
        ALLSELECTED ( 'Table' ),
        [Cliente] = MAX ( 'Table'[Cliente] )
            && MONTH ( [Fecha] ) = MONTH ( TODAY () )
            && YEAR ( [Fecha] ) = YEAR ( TODAY () )
    )
)

The bar chart shows the total current monthly revenue for each customer.

vstephenmsft_1-1675056582115.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @EEEhernan9 ,

 

You can create the following measure:

Revenue =
CALCULATE (
    SUM ( 'Table'[Ingresos] ),
    FILTER (
        ALLSELECTED ( 'Table' ),
        [Cliente] = MAX ( 'Table'[Cliente] )
            && MONTH ( [Fecha] ) = MONTH ( TODAY () )
            && YEAR ( [Fecha] ) = YEAR ( TODAY () )
    )
)

The bar chart shows the total current monthly revenue for each customer.

vstephenmsft_1-1675056582115.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

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.