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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Max Data Error

Good afternoon, I wanted to ask you for help with a MAX function, I have a base in which I have Nro of installments for example from 1 to 40 or 1 to 24, the maximum number of installments that each credit has, when using the CALCULATE to be able to filter by IDCREDITO returns the same number of installments not the maximum of the credit

CuotasSum = CALCULATE(MAX(DATASET_CAIDA_PRESELECCION[NROCUOTA]),DATASET_CAIDA_PRESELECCION[ID_CREDITO])
consulta.png
Thank you very much.-
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @pcarrizo ,

 

Do you want to group by ID_CREDITO and return the maximum value?

Try this calculated column

CuotasSum =
CALCULATE (
    MAX ( 'DATASET_CAIDA_PRESELECCION'[NROCUOTA] ),
    ALLEXCEPT ( DATASET_CAIDA_PRESELECCION, DATASET_CAIDA_PRESELECCION[ID_CREDITO] )
)

vstephenmsft_0-1656308741608.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
Anonymous
Not applicable

Hi @pcarrizo ,

 

Do you want to group by ID_CREDITO and return the maximum value?

Try this calculated column

CuotasSum =
CALCULATE (
    MAX ( 'DATASET_CAIDA_PRESELECCION'[NROCUOTA] ),
    ALLEXCEPT ( DATASET_CAIDA_PRESELECCION, DATASET_CAIDA_PRESELECCION[ID_CREDITO] )
)

vstephenmsft_0-1656308741608.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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.