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
sakthi0311
Regular Visitor

How to exclude rows from table in power bi based on min date

Hi All,

 

I need to exclude rows based on min date from the table. Also, it should be dynamic.

Please find the below sample data 

         Date            A             B         C             D

16-AUG-2018  XAG/USD    0          0        14.4461
16-AUG-2018  XAU/USD    0          0        1175.26
17-AUG-2018  XAG/USD    0          0        14.6289
17-AUG-2018  XAU/USD    0          0        1173.52
20-AUG-2018  XAG/USD    0          0        114.675
21-AUG-2018  XAU/USD    0          0        1190.26

22-AUG-2018  XAG/USD    0          0        14.7713

 

My output is

17-AUG-2018  XAG/USD    0          0        14.6289
17-AUG-2018  XAU/USD    0          0        1173.52
20-AUG-2018  XAG/USD    0          0        114.675
21-AUG-2018  XAU/USD    0          0        1190.26
22-AUG-2018  XAG/USD    0          0        14.7713

 

Kindly help to resolve this. Thanks in advance Smiley Happy

2 ACCEPTED SOLUTIONS
rajulshah
Super User
Super User

Hello @sakthi0311,

 

I guess while calculating measure that is used for D, you can filter the dates table by the following expression maybe:

 

FILTER(datestable,datestable[date]<>MIN(datestable[date])

 

 

What I suggest is if you can share the sample data, it would be better to solve your issue.

 

Regards.

View solution in original post

v-chuncz-msft
Community Support
Community Support

@sakthi0311,

 

You may add a calculated column and make use of Slicers and filters.

Column =
VAR d = MIN ( Table1[Date] ) RETURN IF ( Table1[Date] = d, 1, 0 )
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

6 REPLIES 6
v-chuncz-msft
Community Support
Community Support

@sakthi0311,

 

You may add a calculated column and make use of Slicers and filters.

Column =
VAR d = MIN ( Table1[Date] ) RETURN IF ( Table1[Date] = d, 1, 0 )
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.
rajulshah
Super User
Super User

Hello @sakthi0311,

 

I guess while calculating measure that is used for D, you can filter the dates table by the following expression maybe:

 

FILTER(datestable,datestable[date]<>MIN(datestable[date])

 

 

What I suggest is if you can share the sample data, it would be better to solve your issue.

 

Regards.

Hi rajulshah,

 

Column D is not a calculated measure . It is a default column from db. 

Hi,

 

I want to exclude rows which has min date from the table. 

Please find the sample data below. The date can get add. In that I need to remove min date dynamically.


       Date                A             B              C               D
16-AUG-2018  XAG/USD      0              0           14.4461
16-AUG-2018  XAU/USD      0              0           1175.26
17-AUG-2018  XAG/USD      0              0           14.6289
21-AUG-2018  XAU/USD      0              0           1190.26
22-AUG-2018  XAG/USD      0              0           14.7713
22-AUG-2018  XAU/USD      0              0           1195.86

 

My output should be

 

       Date                A             B              C               D

17-AUG-2018  XAG/USD      0              0           14.6289
21-AUG-2018  XAU/USD      0              0           1190.26
22-AUG-2018  XAG/USD      0              0           14.7713
22-AUG-2018  XAU/USD      0              0           1195.86

 

If anyone has idea please help. Thanks in advance.

Can you please share your sample pbix file with sample data?

 

 

Hi,

 

Pls find the below link for sample data.

 

http://18.219.11.122/sampledata.xlsx

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.