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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Ivan_C
Helper I
Helper I

Filter on total SUM

Hi all,

I have a question which I hope has an easy answer. I've been looking all over but cannot find the solution:

 

My data consists of sales data (turnover, item data, quantity,...) of several different products from many outlets. The items sold on the same ticket have the same ticket number and all have unique identifiers and prices.

 

Now I would like to filter out all tickets of a certain total ticket value (same ticket number) and see the item details.

I can see the total value of the ticket in a table (without item details), but when I'm filtering on Turnover it looks at the value of the individual item sold but not on the total ticket value.

 

Any help would be greatly appreciated!

Thanks,

Ivan

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ivan_C ,

 

Ticket Value = sum(Table[Ticket Value])


Value above 100 = countX(Filter(Values(Table[ticket id]),[Ticket Value] >0),Table[ticket id])

or
countX(Filter(summarize(Table,Table[ticket id],"_1",[Ticket Value]),[_1]>100),[ticket id])

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Ivan_C ,

 

Ticket Value = sum(Table[Ticket Value])


Value above 100 = countX(Filter(Values(Table[ticket id]),[Ticket Value] >0),Table[ticket id])

or
countX(Filter(summarize(Table,Table[ticket id],"_1",[Ticket Value]),[_1]>100),[ticket id])

 

Perfect, thanks @amitchandak for the fast response!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.