cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Frequent Visitor

## Need DAX formula to get value by filter

Hi everyone,

I need to calculate a value instead of having it in a matrix:

So this is the list of duplicate booking identificar and a count of how many bookings for each value.

But I have a filter applied to count ONLY when Bookings are superior to 1.

I need to calculate that value so i get the number 2584 in a card and so I can calculate some ratios.

I cannot find the formula to do it.

1 ACCEPTED SOLUTION
Solution Sage

hi @Elofly ,

Created a sample table, below is the measure.

TotalCount =
SUMX(
FILTER(
SUMMARIZE(TestTbl3, TestTbl3[Booking]
),
"CountBooking", CALCULATE(COUNT(TestTbl3[Booking]))
),
[CountBooking] > 1
),
[CountBooking]
)

2 REPLIES 2
Solution Sage

hi @Elofly ,

Created a sample table, below is the measure.

TotalCount =
SUMX(
FILTER(
SUMMARIZE(TestTbl3, TestTbl3[Booking]
),
"CountBooking", CALCULATE(COUNT(TestTbl3[Booking]))
),
[CountBooking] > 1
),
[CountBooking]
)

Super User

hi, @Elofly

try below  measure

``````measure =
countx(all('tablename'),'tablename'[bookingcolumn])``````

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors