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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.