Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear All,
Solved! Go to Solution.
If you want to use the columns in the first virtual table in the second virtual table, you need to add some filter conditions, such as the same ID column in Table 1 and Table 2, and then go to Table 1 to find the value in the column, you can refer to the example.
I create a calculated table, the virtual table a is created, a flag column is added to a, and if the value > 6, it is assigned 1, otherwise it is 0. Then in the current table, reference the flag column in the virtual table to find the relevant value, and in the flag column that returns the value, you can use the Maxx() and filter() functions to combine.
Table 2 = var a=ADDCOLUMNS(GENERATESERIES(1,10,1),"Flag",IF([Value]>6,1,0))
return ADDCOLUMNS({5,8,10},"Flags",MAXX(FILTER(a,[Value]=EARLIER([Value])),[Flag]))
Output
So for example, if you want to reference [Hifz_Stage] in the v1 table in the v2 table you are creating, you need to go to the v1 table to find it and then reference the column.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you want to use the columns in the first virtual table in the second virtual table, you need to add some filter conditions, such as the same ID column in Table 1 and Table 2, and then go to Table 1 to find the value in the column, you can refer to the example.
I create a calculated table, the virtual table a is created, a flag column is added to a, and if the value > 6, it is assigned 1, otherwise it is 0. Then in the current table, reference the flag column in the virtual table to find the relevant value, and in the flag column that returns the value, you can use the Maxx() and filter() functions to combine.
Table 2 = var a=ADDCOLUMNS(GENERATESERIES(1,10,1),"Flag",IF([Value]>6,1,0))
return ADDCOLUMNS({5,8,10},"Flags",MAXX(FILTER(a,[Value]=EARLIER([Value])),[Flag]))
Output
So for example, if you want to reference [Hifz_Stage] in the v1 table in the v2 table you are creating, you need to go to the v1 table to find it and then reference the column.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
8 |