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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
cruzp
Helper V
Helper V

Table shows all rows when measure is added

Hi 

 

I want to create a new field that will show True if StartPrevious is Null/Empty. As seen in the picture below:

1 Opportunity have 1 project 

 

Expected output:

cruzp_0-1689851302459.png

 

I am using this DAX Formula: 

StartDateBool = IF(ISBLANK([StartPrevious]),"True","False")
But I am not getting the expected output as shown the above pic since the rows automatically expands and shows a lot of rows even when the opportunity should only have 1 project. 
cruzp_2-1689851445799.png

 

 
My model has one to many relationship between fact-aging.
 
Please help.
3 REPLIES 3
pankaj_lp
Helper I
Helper I

if its possible could you share a sample data

pankaj_lp
Helper I
Helper I

it seems its because of the relationship between the tables,
Try using this anyway:

StartDateBool =
VAR OpportunityID = [Opportunity_BK]
VAR HasProject =
CALCULATE(
COUNTROWS(Table),
FILTER(
Table,
Table[Opportunity_BK] = OpportunityID &&
NOT(ISBLANK(Table[StartPrevious]))
)
)
RETURN
IF(HasProject > 0, "False", "True")

Hi @pankaj_lp I can't call the [Opportunity_BK] from the DIM_Opportunity table although there is a one to many relationship to my fact table.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.