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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
iAm3G
Frequent Visitor

Trying to use Table Visual row values selected to create measures

Hi all,

 

I'm trying to identify the date value of a specific row selected within my table visual and use it to modify an existing measure by replacing the Today() part with that date from the row.

 

So for the example below I would need to identify that the date value is "2017-07-22" and use it in the measure:

 

SalesPerDate = CALCULATE(RealTimeData[Total Sales], DATEVALUE(RealTimeData[Date]) = TODAY()) 


Clipboard01.jpg

PLEASE NOTE:

This is a streaming dataset and Calculated Columns / Editing Queries etc are not allowed. It has to be a measure to obtain that value and then use it in another measure.

 

Thanks for any assistance.

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@iAm3G wrote:

Hi all,

 

I'm trying to identify the date value of a specific row selected within my table visual and use it to modify an existing measure by replacing the Today() part with that date from the row.

 

So for the example below I would need to identify that the date value is "2017-07-22" and use it in the measure:

 

SalesPerDate = CALCULATE(RealTimeData[Total Sales], DATEVALUE(RealTimeData[Date]) = TODAY()) 


Clipboard01.jpg

PLEASE NOTE:

This is a streaming dataset and Calculated Columns / Editing Queries etc are not allowed. It has to be a measure to obtain that value and then use it in another measure.

 

Thanks for any assistance.

@iAm3G

If I understand your request correctly, you just need to remove the filter. The SalesPerDate would vary according to your slicer

 

SalesPerDate = CALCULATE(RealTimeData[Total Sales]) 

 

What is your another measure, the first measure would change according to the context of the another measure. 

 

By the way, is the RealTimeData[Date] a text column?

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@iAm3G wrote:

Hi all,

 

I'm trying to identify the date value of a specific row selected within my table visual and use it to modify an existing measure by replacing the Today() part with that date from the row.

 

So for the example below I would need to identify that the date value is "2017-07-22" and use it in the measure:

 

SalesPerDate = CALCULATE(RealTimeData[Total Sales], DATEVALUE(RealTimeData[Date]) = TODAY()) 


Clipboard01.jpg

PLEASE NOTE:

This is a streaming dataset and Calculated Columns / Editing Queries etc are not allowed. It has to be a measure to obtain that value and then use it in another measure.

 

Thanks for any assistance.

@iAm3G

If I understand your request correctly, you just need to remove the filter. The SalesPerDate would vary according to your slicer

 

SalesPerDate = CALCULATE(RealTimeData[Total Sales]) 

 

What is your another measure, the first measure would change according to the context of the another measure. 

 

By the way, is the RealTimeData[Date] a text column?

Hi there and sorry for the late reply. I'm new to Power BI and just started delving into measures etc...
Yes RealTimeData[date] is text because using date shows the date in a format not suitable for our international company and as I'm using a streaming dataset i cant do anything about that. Or at least I tried and couldn't.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.