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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Table formula issue

Hi,

 

formular is.. 

 

Available_Table = groupby(SELECTCOLUMNS(
    FILTER(Cap_Data,Cap_Data[Gross Available]>0),
    "SlotDate",Cap_Data[SlotDate],
    "SP Type",Cap_Data[ServiceCentreReportingType],
    "CapacityRemaining", Cap_Data[Gross Available],
    "Site",Cap_Data[ServiceCentreName],
    "ChargeFlag",if(Cap_Data[IsNonChargeableFlag]=0,1,0),
    "FreeFlag",if(Cap_Data[IsNonChargeableFlag]=1,1,0),
    "DateTime",Cap_Data[SlotDateTime]),
    [Site],[CapacityRemaining],[SP Type],[ChargeFlag],[FreeFlag],[SlotDate])
 
my issue being that its missing rows that should be there (I think)
date value "Cap_Data[SlotDate]" is is just a whole date... date value "Cap_Data[SlotDateTime]" is the date and a time..
 
IE those 2 date fields in a row would read..
 
01/12/2022 & 01/12/2022 09:30
 
or
 
01/12/2022 & 01/12/2022 10:00
 
so the date may have 24 varianst to is (IE the date then the date and time)
 
However if I group by the date field the result of the table is missing rows.. seems to only give the first and last value (I think coiuld be wrong tho).. if I use the date/time field all the rows appear as I expect them too..
 
I want the table to be grouped by the "capacityRemaining" field.. and sim the capacty remaining.. 
 
pls help!
 
thanks
 
J
 
2 REPLIES 2
Anonymous
Not applicable

HI @Anonymous,

Any update on this? It is hard to test and troubleshoot without any detail sample data, can you please share some more information about these?

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @Anonymous,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.