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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Measure as an input in a single cell

Hello everyone, 

I am working on a document with two different excel files: GRN and RTB. 

Everyday the number of open entries (total rows) in excel sheet GRN is counted (filtered according to the date) and then fed in RTB as a single value in a cell pertaining to that day's date. Normally I enter the values manually in Excel but I was wondering whether there's a way to automize it using PowerBI? 

 

I have created a Measure: 

TotalGRN = COUNTROWS('GRN'
 
but I cant seem to connect this with the RTB table, since I want the count in a Single cell. 

 

Is there a way PowerBI can do that itself? 

Thanks a lot for taking time and helping me 🙂 

 

2 REPLIES 2
bhanu_gautam
Super User
Super User

@Anonymous ,If you need to filter GRN by date, you can create a calculated column in the GRN table:
IsToday = IF('GRN'[Date] = TODAY(), 1, 0)


Then, modify your measure to count only today's rows:
TotalGRN = CALCULATE(COUNTROWS('GRN'), 'GRN'[IsToday] = 1)


Create Relationship:

Go to Model view and create a relationship between the Date columns in GRN and RTB tables if they exist.

Create a new measure in the RTB table:

SingleCellValue =
VAR CurrentDate = MAX('RTB'[Date])
RETURN
CALCULATE([TotalGRN], 'GRN'[Date] = CurrentDate)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Anonymous
Not applicable

The values still dont show in the cell where I want them to. Maybe you can please explain the steps? @bhanu_gautam 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.