Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Dear.
Greetings first of all.
I have a card that shows me the total of a column.
The problem is that the table is more or less like this:
CustomerID, Amount, Status
1,100,Cancelled
1,100,Derivative
1,100,Active
The customer wants the total to be shown on the card to be 100, since the client is the same, and the values will always be repeated in these cases, ONLY the state changes, and also the state will not always be the same UFFF
Please any help that will be added.
Solved! Go to Solution.
Hi @CristianCL21,
Please update the formula of measure [LineaUtilizada] as below and check whether it can get the correct result. You can find the attachment for more details.
LineaUtilizada =
SUMX (
SUMMARIZE (
'CLIENTES_PowerBI',
'CLIENTES_PowerBI'[RUT CLIENT],
"Max lineused", MAX ( 'CLIENTES_PowerBI'[LINE USED] )
),
[Max lineused]
)
Best Regards
Hi @CristianCL21,
You can create a measure as below and check whether it can get your desired result. If no, please provide more sample data with Text format and your expected result with backend logic and special examples. Thank you.
Amount for per customer =
CALCULATE (
MAX ( 'Customers'[Amount] ),
ALLEXCEPT ( 'Customers', 'Customers'[CustomerID] )
)
Best Regards
Hello. it works almost perfect for me, use the formula for 2 measures:
The result should be quota = 150,000 Line Used = 272 , the latter does not work for me.
The measures I use are:
Hi @CristianCL21,
Please try to update the formula of your measure [Quota] as below and check whether you can get the correct result. If no, please provide some sample data in table CLIENTES_PowerBI (exclude sensitive data) and your expected result with calculation logic and special examples. By the way, what's the meaning of "last month"? It means that the latest date for per customer or something else? Thank you.
I think it's because I have that same date for other months, and I'm wanting to show the last month.
LineaUtilizada =
VAR _mindate =
CALCULATE (
MIN ( 'CLIENTES_PowerBI'[FechaProceso] ),
ALLEXCEPT ( 'CLIENTES_PowerBI', 'CLIENTES_PowerBI'[RUT CLIENT] )
)
RETURN
CALCULATE (
MAX ( 'CLIENTES_PowerBI'[LINE USED] ),
FILTER (
ALLEXCEPT ( 'CLIENTES_PowerBI', 'CLIENTES_PowerBI'[RUT CLIENT] ),
'CLIENTES_PowerBI'[FechaProceso] = _mindate
)
)
Best Regards
Hi, last month's thing don't consider.
The calculation of LineaUtilizada should have the sum of all customers in case of not filtering by a particular id, I explain:
For the image that you indicate to me you should add the following values.
1,272
2,272
3,272
The sum of the maximum value for each ID
SUM= 816
Hi @CristianCL21,
Please update the formula of measure [LineaUtilizada] as below and check whether it can get the correct result. You can find the attachment for more details.
LineaUtilizada =
SUMX (
SUMMARIZE (
'CLIENTES_PowerBI',
'CLIENTES_PowerBI'[RUT CLIENT],
"Max lineused", MAX ( 'CLIENTES_PowerBI'[LINE USED] )
),
[Max lineused]
)
Best Regards
Hi,
What result do you want to see on the card visual when there are multiple CustomerID's. Show the result clearly.
I want to show 1100
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
84 | |
84 | |
72 | |
49 |
User | Count |
---|---|
143 | |
131 | |
109 | |
64 | |
55 |