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
RobThrive
Resolver I
Resolver I

Measure Counting Observations by Reference - change based on slider

Hello,

I sorry I know this is likely a very simple question but I've not yet wrapped my head around DAX and measures.

 

I have data like the example below, I pulled it from SQL where cnt is the number of observations (rows) by reference.

But what I need is a measure in PowerBI that counts the number of rows/observations by reference even when a slider changes the dates. So if the slider started 2019-01-03 to 2019-01-05, then abc123 will only say 1 rather than 3, but xyz789 will continue to read 2.

 

Reference, cnt, date,

abc123, 3, 2019-01-01

abc123, 3, 2019-01-02

abc123, 3, 2019-01-03

xyz789, 2, 2019-01-04

xyz789, 2, 2019-01-05

 

Many thanks in advance,

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

-- T is the name of the table.

[measure] = countrows ( T )

Best
D.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

-- T is the name of the table.

[measure] = countrows ( T )

Best
D.

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.

Top Solution Authors