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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sivarajan21
Post Prodigy
Post Prodigy

Creating Dynamic Dax measure for a virtual table to filter table instead of calculated table(static)

Hi,

 

I have a below table in power bi:

CreatedOnDataIdDataset IdNameFloor Area
28/10/2023 01:177057561Site 12342
28/10/2023 01:177057532Site 276829
28/10/2022 01:177057522Site 275775
28/10/2021 01:177057512Site 274721
28/10/2023 01:177057503Site 373667
28/10/2022 01:177057493Site 372613
28/10/2021 01:177057483Site 371559

 

My requirement is to create a virtual table using a dax measure(not calculated table) to filter this table by the first records for each dataset id that are less than or equal to filtered date(CreatedOn).

 

For example,if the above table is filtered for below date:

Parameter/Slicer

01/01/2023

 

Then the resulting virtual table from the dax measure is as below:

CreatedOnDataIdDataset IdNameFloor Area
28/10/2022 01:177057522Site 275775
28/10/2022 01:177057493Site 372613

 

The resulting virtual table ignored 705751 &705748 DataId because our dax measure should select only the first records from the multiple Dataset Id that exist

 

PFA screenshot of the above tables and result:

sivarajan21_0-1701334981877.png

 

PFA sample file in below link

Virtual_Dax.pbix

 

Thanks in advance! 

@marcorusso @Ahmedx @Greg_Deckler @Ashish_Mathur @amitchandak  

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Ashish_Mathur_0-1701346581974.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors