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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
HishamAT
Helper II
Helper II

Display selected information

I have a table and i want to display the count for the passengers by :

selected date and 

1. By Traffic = ALL give me 10000

2. By Traffic = INS give me 8000

3. By Traffic = OUT give me 2000

 

TrafficPassenger
All10000
INS8000
OUT2000
1 ACCEPTED SOLUTION
Anand24
Super User
Super User

Hi @HishamAT ,
Try below calculated measures:

ALL Traffic Count = CALCULATE(COUNT(Table[Passenger]), Table[Traffic] = "All")

INS Traffic Count = CALCULATE(COUNT(Table[Passenger]), Table[Traffic] = "INS")

OUT Traffic Count = CALCULATE(COUNT(Table[Passenger]), Table[Traffic] = "OUT")

 

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

View solution in original post

2 REPLIES 2
Anand24
Super User
Super User

Hi @HishamAT ,
Try below calculated measures:

ALL Traffic Count = CALCULATE(COUNT(Table[Passenger]), Table[Traffic] = "All")

INS Traffic Count = CALCULATE(COUNT(Table[Passenger]), Table[Traffic] = "INS")

OUT Traffic Count = CALCULATE(COUNT(Table[Passenger]), Table[Traffic] = "OUT")

 

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

I changed them to : 

ALL Traffic Count = CALCULATE(SUM(Table[Passenger]), Table[Traffic] = "All")

INS Traffic Count = CALCULATE(SUM(Table[Passenger]), Table[Traffic] = "INS")

OUT Traffic Count = CALCULATE(SUM(Table[Passenger]), Table[Traffic] = "OUT")

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.