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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply

need some dax or logic

Hi All,

 

Every month I used to download one excel data from one of the work tracker tool. This excel download i took every monday and the same excel sheet I upload in power bi in table. Now on that table I use below dax to get random records. Reason for random records is b'coz to perform quality checks on those selected random records.

Dax-

 

 

qc output = SAMPLE(COUNT('Main raw'[Associate])/5,'Main raw',[Associate])

 

 

this output is in table format.

 

Now my problem is, when I do download from work tracker for next mondays, definatly that ID's which are generated from above dax is also there in next monday raw dump. Let me give example..

 

for 14th Jan download there were 144 records, based on above dax it provided me 22 records for qc.

Now today when i took raw dump, the total raw dump is 339 from 1st Jan and it also includes above 22 records.

 

I want to exclude those 22 records and provide me output. Is there any way to build this? 

 

In "model view" I cant see the calculated table created, otherwise I can map those ID column and lookup dax could possible to apply. But table I cant see in model view..

3 REPLIES 3
danextian
Super User
Super User

Hi @PowerBIBeginer 

Power BI reads data directly from the source and does not store previously generated random values. Those 22 records will always reappear after each refresh if they are present in the source. The records that need to be excluded must be tracked or stored somewhere and then fed back into the model as a reference for exclusion.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Could you help me then how do I get those excluded when every time I do raw dump refresh?

Do you already have a separate data source that tracks those records already included in the prior quality check? Without that, there's no way to exclude them.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.