cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BlastS
Helper I
Helper I

Calculate/Filter to get the date when to x(value)

I got this columns

 

Date                                   columnX               Output Expect 

02/02/2013 12:00:00            0                       02/02/2013 12:10:00

02/02/2013 12:10:00            1

02/02/2013 12:20:00            0 

02/02/2013 12:30:00            0

 

 

I go to columnX i can make a count (to get all = 1 ), but instead of showing the count number i want to display the date where columnX is equal to 1 , i already tried filters and calculate but dont know how can i make this.

 

Where is 1 should be displayed the date

3 ACCEPTED SOLUTIONS
parry2k
Super User III
Super User III

@BlastS try this

 

Date Measure = 
CALCULATE ( MIN( Table[Date]), FILTER( ALL( Table ), Table[column] = 1 ) )





Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

themistoklis
Super User II
Super User II

@BlastS

 

Or this:

Measure = CALCULATE(MAX(Table[Date], Table[columnX]=1)

View solution in original post

v-chuncz-msft
Community Support
Community Support

@BlastS,

 

See https://www.sqlbi.com/articles/filter-arguments-in-calculate/ to learn more.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@BlastS,

 

See https://www.sqlbi.com/articles/filter-arguments-in-calculate/ to learn more.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

themistoklis
Super User II
Super User II

@BlastS

 

Or this:

Measure = CALCULATE(MAX(Table[Date], Table[columnX]=1)

View solution in original post

parry2k
Super User III
Super User III

@BlastS try this

 

Date Measure = 
CALCULATE ( MIN( Table[Date]), FILTER( ALL( Table ), Table[column] = 1 ) )





Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

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

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.