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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Atf23
Helper I
Helper I

Handle Blank Results

Hi there,

I have the following typical model

Atf23_0-1687879675592.png

and the content of the tables is as follows

Atf23_1-1687879766286.png

Atf23_2-1687879791787.png

Atf23_3-1687879820329.png

Atf23_4-1687879848973.png

I need to display results of some selected user so that if there is no equivalent row in the data I return "to do"
using the native column "status" gave Table 1
using a calculated measure gave the Table 2 such that:
status_m = 

VAR s =  CALCULATEMIN (results[status])
RETURN IFISBLANK(s), "to do", )

Atf23_5-1687880093710.png

what I want to get (giving the selected course and user) is as follows:

Atf23_6-1687880211609.png

 

I appreciate any idea 🙂 Thank you

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your datamodel correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1687887189810.png

 

 

Status measure: = 
VAR _course =
    MAX ( Courses[Course] )
VAR _name =
    MAX ( Users[Name] )
VAR _evaluation =
    MAX ( Evaluations[Evaluation] )
RETURN
    COALESCE (
        MAXX ( FILTER ( Result, Result[Course] = _course ), Result[Status] ),
        "to do"
    )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you for your prompt response but what I already git this output using the measure "status_m". In fact, what I want to get :
If "course 2" is selected and user "A" is selected, the table must only show results of the user "A" for all of the 3 evalauations of "course 2".

Atf23_0-1687935399233.png
I don't want to results of the user "A" for other courses to be displayed. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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