Skip to main content
cancel
Showing results for 
Search instead 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.

Reply
JamesBowdidge
Frequent Visitor

removing unused rows from a dax table..

Hi,

 

using the following DAX table..

 

SalesTable = groupby(SELECTCOLUMNS(data1,
"Booked Date",data1[ApptDateNotime],
"SlotType", data1[SlotType],
"Sale Count",data1[ApplicantCount],
"Site",data1[ServiceCentreName],
"Appointment £Rev",if(data1[SlotType]="standard",data1[ApplicantAppointmentNetAmount],blAnk()),
"Express £Rev",if(if(data1[SlotType]="express",data1[ApplicantAppointmentNetAmount],blAnk())>110,110,blank())),
[Booked Date],[Sale Count],[Site],[SlotType],[Appointment £Rev],[Express £Rev])
 
And I want to remove rows that meet a criteria..
 
If "appointment £Rev" = 0 & "Express £Rev" = blank() then do not return the row
 
is this possible, cant seem to find a related post, apologies if there is one...
 
thanks 
 
J
1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @JamesBowdidge,

 

You can use:

 

SalesTable = groupby(SELECTCOLUMNS(
FILTER(data1,NOT(If "appointment £Rev" = 0 & "Express £Rev" = blank())),
"Booked Date",data1[ApptDateNotime],
"SlotType", data1[SlotType],
"Sale Count",data1[ApplicantCount],
"Site",data1[ServiceCentreName],
"Appointment £Rev",if(data1[SlotType]="standard",data1[ApplicantAppointmentNetAmount],blAnk()),
"Express £Rev",if(if(data1[SlotType]="express",data1[ApplicantAppointmentNetAmount],blAnk())>110,110,blank())),
[Booked Date],[Sale Count],[Site],[SlotType],[Appointment £Rev],[Express £Rev])

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

View solution in original post

1 REPLY 1
Shaurya
Memorable Member
Memorable Member

Hi @JamesBowdidge,

 

You can use:

 

SalesTable = groupby(SELECTCOLUMNS(
FILTER(data1,NOT(If "appointment £Rev" = 0 & "Express £Rev" = blank())),
"Booked Date",data1[ApptDateNotime],
"SlotType", data1[SlotType],
"Sale Count",data1[ApplicantCount],
"Site",data1[ServiceCentreName],
"Appointment £Rev",if(data1[SlotType]="standard",data1[ApplicantAppointmentNetAmount],blAnk()),
"Express £Rev",if(if(data1[SlotType]="express",data1[ApplicantAppointmentNetAmount],blAnk())>110,110,blank())),
[Booked Date],[Sale Count],[Site],[SlotType],[Appointment £Rev],[Express £Rev])

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

Helpful resources

Announcements
Microsoft Fabric Learn Together

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

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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