Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there! I have two calculated text visuals (Source and Target) based on the same column (Version). They are both sliced differently. I want a third calculated column to display the differences from slicked Target to the sliced Source. The data and what I'd expect looks like this. I can't seem to figure out the correct DAX.
[Source] [Target] [Difference]
--------- --------- ------------
|1111| |0000| |1111|
|2222| |2222|
|3333| |3333|
|4444| |4444|
Thanks!
Can you elaroate the data a little more, may be share it
Thanks for your reply. I'll try adding more detail. There's a fourth table involved called environment. I have a slicer of it on the report twice. The first slicer (ENV1) affects the Source table, and the second slicer (ENV2) affects the Target table. I'm having trouble getting the difference (from Source and Target) to display in a third column.
(w/ENV1 Filter) (w/ENV2 Filter)
[ENV1] [ENV2] [Source] [Target] [Difference]
-------- -------- --------- --------- -------------
|Dallas| |Chicago| |1111| |0000| |1111|
|2222| |2222|
|3333| |3333|
|4444| |4444|
You may try EXCEPT Function and refer to this post.
The EXCEPT function appears to be used table to table, which I don't think applies here. Let me re-describe my use case.
The goal of the report is to display the software versions installed across multiple servers and display the differences. The data set is an single appended table from 16 individual Oracle connections. I have two calculated text columns (named Source and Target) that are both based on the same column (Version). They are both sliced by Environment. I want a third calculated column to display the differences between Target and Source. I'm having trouble with a custom filter seeing the passed in slicer (Environment) selections. Thanks!
Hi there! I have two calculated text visuals based on the same column (table "Source" and table "Target"), both filtered differently. I want a third calculated column to display the differences from Target to Source. The data and what I'd expect looks like this.
[Source] [Target] [Difference]
-------- -------- ------------
|1111| |0000| |1111|
|2222| |2222|
|3333| |3333|
|4444| |4444|
Thanks!
first of all change the data type of the columns from gtext to integer for subtraction by clicking on the modelling tab and later on write a dax query by creating a new column.Hope this helps !
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
88 | |
52 | |
45 | |
39 | |
38 |