cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
MikeOxley
Frequent Visitor

Value from unralted table filer on second table.

I have two tables, one with sales data by day, with a running total.

At the moment I get excel file that has sales information in, I get another request from another source but its a single date, it is NOT and CANNOT be relational to the sales data.

Two tablesTwo tables

 

Slicers dont work as its not relational.

 

ResultResult

I wnat the users date to populate two CARDS with the two figures, Sales and total sales

 

 

1 ACCEPTED SOLUTION
MarkLaf
Solution Sage
Solution Sage

You could add a calculated column to your sales day by day table, like

 

SlicerCol =
IF( Sales[Data Date:] = MIN( SingleDate[DataDate] ), "The Date", "Not The Date" )

 

 

Or you can add a filter to applicable measures, like

 

Sales_TheDate = 
CALCULATE(
  SUM( Sales[Sales] ),
  KEEPFILTERS( TREATAS( VALUES( SingleDate[DataDate] ), Sales[Data Date:] ) )
)

 

View solution in original post

2 REPLIES 2
MikeOxley
Frequent Visitor

Thank you, I am very new at this - I was googling for weeks on how to select like in SQL and just dispaly the numbers (select sales from sales where date = 3 june 23) type uery but this is great, I never ask but this was frustrating. Will do a cource soon on Power BI and the new MS Fabric.

MarkLaf
Solution Sage
Solution Sage

You could add a calculated column to your sales day by day table, like

 

SlicerCol =
IF( Sales[Data Date:] = MIN( SingleDate[DataDate] ), "The Date", "Not The Date" )

 

 

Or you can add a filter to applicable measures, like

 

Sales_TheDate = 
CALCULATE(
  SUM( Sales[Sales] ),
  KEEPFILTERS( TREATAS( VALUES( SingleDate[DataDate] ), Sales[Data Date:] ) )
)

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors