Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, I need some help please.
I have two formulas and I need to join them in one.
1) The first one is:
Hi @pfinanciero ,
According to your description, here’s my solution.
Medida =
VAR _NetMargin =
DIVIDE (
SUM ( 'Tabla1'[PYG-Mes] ),
CALCULATE ( SUM ( 'Tabla1'[PYG-Mes] ), 'Tabla1'[Grupo] = "Ingresos Netos" ),
0
)
VAR _LimitRate =
CALCULATE (
SELECTEDVALUE ( 'Tabla2'[Califacion], 0 ),
'Tabla2'[Limite inferior] <= _NetMargin,
'Tabla2'[Limite superior] > _NetMargin
)
RETURN
IF (
HASONEVALUE ( 'Tabla1'[Mes Ano] ),
_LimitRate,
AVERAGEX ( VALUES ( 'Tabla1'[Mes Ano] ), _LimitRate )
)
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,thanks for your reply.
I included it in the model as follows (the measure is called "Calificación"):
However, I can't find the solution, because in the total row I need to calculate the average of the grade as shown in the column "Medida", which is calculated based on the measure called "Limit Rate".
I hope to be clearer this time, thank you very much
@pfinanciero is it kindly possible to supply a sample pbix please?
Excuse me I'll give a bit of context. The first measure is used to give a rating from 1 to 5 to the net margin according to some preset ranges in another table. Since in the row of totals of the first formula it does not calculate the average grade for me, I had to create the second measure, with which it calculates the average in the row of totals.
My question is these two formulas cannot be joined into one, I attach screenshot of the table with current situation.
Thanks!!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |