Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Basically I need to summarize the articles and for them the time columns must be added based on the article and the NumberT column becomes a counter where if I have two lines for the same article whose NumberT is different, the result would be 2.
I will summarize it with the following view, I hope it is understood.
I have the following table:
| Article | TimeT | Count | TimeTO | NumberT |
| 1 | 0 | 5 | 0 | 21 |
| 1 | 0 | 10 | 0 | 22 |
| 2 | 0 | 2 | 0 | 21 |
| 3 | 0 | 6 | 0 | 25 |
| 2 | 0 | 9 | 0 | 21 |
And I need it to display like this:
| Article | TimeT | Count | TimeTO | NumberT |
| 1 | 0 | 15 | 0 | 2 |
| 2 | 0 | 11 | 0 | 1 |
| 3 | 0 | 6 | 0 | 1 |
Solved! Go to Solution.
Hi @GJE ,
Based on the information you have provided, you can follow the steps below:
Add new measure:
Count_ =
CALCULATE (
SUM ( 'Table'[Count] ),
FILTER (
ALL ( 'Table' ),
'Table'[Article] = SELECTEDVALUE ( 'Table'[Article] )
)
)
NumberT_ =
COUNTROWS ( SUMMARIZE ( 'Table', 'Table'[Article], 'Table'[NumberT] ) )
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Excuse me @Anonymous @Ashish_Mathur @ryan_mayu @jdbuchanan71
Just one more question related to this same scenario. The TimeTO and TimeT columns are in HOUR format, so the SUM of them gets stuck at 23:59:59. I tried to change it but no luck.
What can I do in this situation?
Guys, thank you very much!! I found all your answers very useful. ❤️
Hi @GJE ,
Based on the information you have provided, you can follow the steps below:
Add new measure:
Count_ =
CALCULATE (
SUM ( 'Table'[Count] ),
FILTER (
ALL ( 'Table' ),
'Table'[Article] = SELECTEDVALUE ( 'Table'[Article] )
)
)
NumberT_ =
COUNTROWS ( SUMMARIZE ( 'Table', 'Table'[Article], 'Table'[NumberT] ) )
Final output:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Drag Article to the Table visual. Write these measures
Time = sum(Data([TimeT])
C = sum(Data[Count])
TT = sum(Data([TimeTO])
NT = distinctcount(Data[NumberT])
Hope this helps.
you can also do this in PQ
= Table.Group(#"Changed Type", {"Article"}, {{"time", each List.Sum([TimeT]), type nullable number}, {"count", each List.Sum([Count]), type nullable number}, {"timeT", each List.Sum([TimeT]), type nullable number}, {"numberT", each List.Count(List.Distinct([NumberT])), type nullable number}})
pls see the attachment below
Proud to be a Super User!
Two measures should do it.
The first to sum the count.
Sum Count = SUM ( YourTable[Count] )
The second to count the unique Article / NumberT pairs
NumberT Count =
COUNTROWS(
SUMMARIZE(YourTable,YourTable[Article],YourTable[NumberT])
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |