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
Anonymous
Not applicable

Filtering the lowest AIF

Hi community,

 

I've tried some options but as often it happens, I failed..

 

Capture.JPG

 

My table has several lines for each market, but this table has to be exported and fed into another system with only 1 line for each market. The line that i need to keep is the one with the lowest AIF.

 

I tried some filter solution on the visual but didn't succeed.

 

any suggestions? 😄

 

1 ACCEPTED SOLUTION
MariaP
Solution Supplier
Solution Supplier

HI @Anonymous

 

If you need to export your table forrm the backend then you can copy and paste your table into the query editor and Use the Basig Group by to Group By Market, Use the Operation  MIn on the AIF Column. This will give you a new table you can use directly in the front end to report on.

 

LowestAIFGroup.PNG

 

New Restricted TableNew Restricted Table

 

 

Or from the front end you can filter using the following measures.

 

To find the minimun value by Market or ,for example, by Point of Sale City here are 3 measures:

LowestAIF = MIN(Airline[AIF])


Lowest AIF By Market = CALCULATE( [LowestAIF], GROUPBY( Airline, Airline[Market]) )


Lowest AIF By Point Of Sale City = CALCULATE( [LowestAIF], GROUPBY( Airline, Airline[Point Of Sale City]) )

 

Final results displayed in the front end using the above measures with relevant columns shown:

:

Final results showing values with measures or with a new tableFinal results showing values with measures or with a new table

If you need to export the table into another system, the grouping from the backend might work easiest for  you,

 

Cheers,
Maria

View solution in original post

1 REPLY 1
MariaP
Solution Supplier
Solution Supplier

HI @Anonymous

 

If you need to export your table forrm the backend then you can copy and paste your table into the query editor and Use the Basig Group by to Group By Market, Use the Operation  MIn on the AIF Column. This will give you a new table you can use directly in the front end to report on.

 

LowestAIFGroup.PNG

 

New Restricted TableNew Restricted Table

 

 

Or from the front end you can filter using the following measures.

 

To find the minimun value by Market or ,for example, by Point of Sale City here are 3 measures:

LowestAIF = MIN(Airline[AIF])


Lowest AIF By Market = CALCULATE( [LowestAIF], GROUPBY( Airline, Airline[Market]) )


Lowest AIF By Point Of Sale City = CALCULATE( [LowestAIF], GROUPBY( Airline, Airline[Point Of Sale City]) )

 

Final results displayed in the front end using the above measures with relevant columns shown:

:

Final results showing values with measures or with a new tableFinal results showing values with measures or with a new table

If you need to export the table into another system, the grouping from the backend might work easiest for  you,

 

Cheers,
Maria

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.