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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Need modelling help

Hi, 

 

Dataset:

 

Version    Model     Cost1    Cost2
    
V1              A            200       300
V2              A            200       300


Result expected:

 

Version    Model     Cost1    Cost2
    
V1              A            Blank       300
V2              A            200       Blank




I have dataset as above and when i pull the version field into the table visual , Iget a repeated rows of model and cost as described above. How can i resolve this so that i get only single row for V1 and V2 each

 

 

1 ACCEPTED SOLUTION
powerbidev123
Solution Sage
Solution Sage

Use DAX Measures with Conditional Logic

Let’s say your table looks like this:

| Version | Model | Cost1 | Cost2 |

You can replace Cost1 and Cost2 columns with measures that blank out values based on the Version:

Step 1: Create measures
Cost1_Display =
IF(
SELECTEDVALUE('Table'[Version]) = "V2",
[Cost1], // Use your actual measure or column here
BLANK()
)

Cost2_Display =
IF(
SELECTEDVALUE('Table'[Version]) = "V1",
[Cost2],
BLANK()
)
If Cost1 and Cost2 are columns and not measures, replace [Cost1] with MAX('Table'[Cost1]) or SUM, depending on your data structure.

View solution in original post

4 REPLIES 4
powerbidev123
Solution Sage
Solution Sage

Use DAX Measures with Conditional Logic

Let’s say your table looks like this:

| Version | Model | Cost1 | Cost2 |

You can replace Cost1 and Cost2 columns with measures that blank out values based on the Version:

Step 1: Create measures
Cost1_Display =
IF(
SELECTEDVALUE('Table'[Version]) = "V2",
[Cost1], // Use your actual measure or column here
BLANK()
)

Cost2_Display =
IF(
SELECTEDVALUE('Table'[Version]) = "V1",
[Cost2],
BLANK()
)
If Cost1 and Cost2 are columns and not measures, replace [Cost1] with MAX('Table'[Cost1]) or SUM, depending on your data structure.

DineshYadl
Helper I
Helper I

Hi @Anonymous 

 

Please share sample dataset atleast 10 records.

 

Thanks.

Cookistador
Super User
Super User

Can you share with us a sample or a screenshot of the data model you built ?

Plus a example of underlying data and the definition of any relevent measures


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.