Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi all,
I am sure you guys already resolved similar questions.
I am looking at the following table (this is just a sample). I want to SUM the Rate_VS_Tipo and DISTINCT by Processo_SGC.
What I want to achieve is get the SUM of the Rate, for each Processo_SGC where Processo_SGC must be a unique SUM. Meaning, in the below example the result would be 25,9. I am only getting the sum of all of them. Cheers
Solved! Go to Solution.
Hi @Anonymous
Try this measure
Measure = CALCULATE ( SUM ( Sheet2[col2] ), FILTER ( DISTINCT ( Sheet2 ), [col1] = MAX ( [col1] ) && Sheet2[Tipo_Processo_SGC] IN { "INC1", "INC2" } ) )
If it doesn't work, please share the screenshot when you apply this measure in the table
Best Regards
Maggie
Hi @Anonymous
you create a column as below, right?
I create a measure as above, is this what you want?
Measure = CALCULATE(SUM(Sheet2[col2]),FILTER(DISTINCT(Sheet2),[col1]=MAX([col1])))
If not, please let me know your expected result based on my example.
Best Regards
Maggie
Hi Maggie,
Thank you so much!! I think that we got to the result, yes!
Now, I'd like to add this filter, can you plesase let me know how I could possibly do this:
Hi @Anonymous
Try this measure
Measure = CALCULATE ( SUM ( Sheet2[col2] ), FILTER ( DISTINCT ( Sheet2 ), [col1] = MAX ( [col1] ) && Sheet2[Tipo_Processo_SGC] IN { "INC1", "INC2" } ) )
If it doesn't work, please share the screenshot when you apply this measure in the table
Best Regards
Maggie
Fantastic!
Thank you very much.
+++ And then I would like to filter it as well.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
63 |
User | Count |
---|---|
135 | |
126 | |
110 | |
70 | |
61 |