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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.