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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
CTH2022
Frequent Visitor

Table showing incorrect total

data.JPGtableJPG.JPG

Total is incorrect. Need help to fix the issue.

7 REPLIES 7
BIswajit_Das
Resolver III
Resolver III

Hello @CTH2022 try this out
V1.PNG

X2.PNG

X3.PNG

X4.PNG

Updated the data and table only show 1 row for station S1. Table still unable to show top 2 for each station.

 

CTH2022_1-1687443953935.png

ProgramSTATIONTYPE
AS1F6
AS1F6
AS2F2
AS2F2
AS1F3
AS2F3
AS2F3
AS1F2
AS1F3
AS2F2
AS2F2
AS1F1
AS1F1
AS2F1
BS2F3
BS1F3
BS2F3
BS2F3
BS1F3
BS1F3
BS2F3
BS2F3
AS1F1
AS1F1
AS2F2
AS2F2
AS1F3
AS2F3
AS2F3
AS1F2
AS1F3
AS2F2
AS2F2
AS1F1
AS1F1
AS2F1
BS2F3
BS1F4
BS2F4
BS2F5
BS1F4
BS1F4
BS2F5
BS2F3

Thanks..but still having issue when the data is updated, only Top 1 is shown for station S1.

 

CTH2022_0-1687425660311.png

Program STATION TYPE
A S1 F6
A S1 F6
A S2 F2
A S2 F2
A S1 F3
A S2 F3
A S2 F3
A S1 F2
A S1 F3
A S2 F2
A S2 F2
A S1 F1
A S1 F1
A S2 F1
B S2 F3
B S1 F3
B S2 F3
B S2 F3
B S1 F3
B S1 F3
B S2 F3
B S2 F3
A S1 F1
A S1 F1
A S2 F2
A S2 F2
A S1 F3
A S2 F3
A S2 F3
A S1 F2
A S1 F3
A S2 F2
A S2 F2
A S1 F1
A S1 F1
A S2 F1
B S2 F3
B S1 F4
B S2 F4
B S2 F5
B S1 F4
B S1 F4
B S2 F5
B S2 F3

BIswajit_Das
Resolver III
Resolver III

Hello @CTH2022 can you share the table data instead of the image that would be really helpfull.

ProgramSTATIONTYPE
AS1F1
AS1F1
AS2F2
AS2F2
AS1F3
AS2F3
AS2F3
AS1F2
AS1F3
AS2F2
AS2F2
AS1F1
AS1F1
AS2F2
BS2F3
BS1F3
BS2F3
BS2F3
BS1F3
BS1F3
BS2F3
BS2F3

 

counting = countax(Sheet1,[TYPE])
 
top 2 =
var rankingcontext = values(Sheet1[TYPE])
return
calculate([counting],
topn(2,all(Sheet1[TYPE]),
[counting]),rankingcontext)
 
Wanted to table to show top 2 'TYPE' for each station.

@CTH2022 , Try like

 

top 2 =
var rankingcontext = values(Sheet1[TYPE])
return
Sumx(Summarize(Sheet1, Sheet1[STATION], Sheet1[Program], "_1",
calculate([counting],
topn(2,all(Sheet1[TYPE]),
[counting]),rankingcontext)),[_1])

The solution seems to work. However, when I added more data, the table started to display more than top 2 per station. Need help to fix this.

ProgramSTATIONTYPE
AS1F1
AS1F1
AS2F2
AS2F2
AS1F3
AS2F3
AS2F3
AS1F2
AS1F3
AS2F2
AS2F2
AS1F1
AS1F1
AS2F1
BS2F3
BS1F3
BS2F3
BS2F3
BS1F3
BS1F3
BS2F3
BS2F3
AS1F1
AS1F1
AS2F2
AS2F2
AS1F3
AS2F3
AS2F3
AS1F2
AS1F3
AS2F2
AS2F2
AS1F1
AS1F1
AS2F1
BS2F3
BS1F4
BS2F4
BS2F5
BS1F4
BS1F4
BS2F5
BS2F3

CTH2022_0-1687397995633.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.