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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to create a column flag in a table of grouped data

Hi,

 

I'm relatively new to PowerBI and DAX and I have the following problem. I've searched on this forum and internet, but the problem is I don't know where to start.

 

I have a simple Timestamp table which contains information regarding the tasks of employees. This includes start date, duration, end date etc.

 

I have a table visualisation in PowerBI that summarises each day and the total duration time of tasks. For example:Table.PNG

Count is the number of tasks performed in the specified date.

 

I need to create a count of each day that has over 100 hours and summarise this at the bottom. How would I do this?

 

Thanks

 

2 REPLIES 2
Anonymous
Not applicable

I've managed to solve part of the problem by creating the following measure:

 

Hour10Tst = IF(Sum(tFact_DateTime[Duration_hours])>=100,1,0)

 

 

This could then be filtered if necessary. However, the count at the bottom of the table is obviously incorrect, as this should be 2. See below.

 

Table.PNG

 

Alternatively to the table, I could just also see a Card visualisation with the total number of days over 100 hours.

Anonymous
Not applicable

Hi @Anonymous,

Create a new column using the following formula. Then create table visual and card visual as shown in the followings screenshot

Column = IF(tFact_DateTime[Duration_hours]>=100,1,0)
3.PNG

Thanks,
Lydia Zhang

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors