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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
gheisenberg
New Member

Visualising a measure when using a calculated column is not possible

Hi All,

 

I really need your help.

In order to illustrate my problem I use the following sample data set:

HERE you will find the data set as well as the .pbix file I am using:

https://th-koeln.sciebo.de/s/swVzGZ4cXsOTT3k 

 

gheisenberg_0-1702661493061.png

 

My objective: I calculated the zscore of the 'value1' col by means of a measure. I used a measure since I need to recompute the zscore every time I am slicing the data, so e.g. if I select a certain 'industry' or 'sector' slice my list changes accordingly, hence I need to re-compute the zscore for this resulting slice of data (since there remain less data points in my distribution). I also do a binning of the zscore as you can see in the last column. Everything works perfectly fine.

 

My problem: HOWEVER, I am not able to visualize the counts of the zscore over the respective bins. I understand that a measure is not meant to get visualized on an x-axis of a bar chart for instance. And I also understand that I am supposed to use a calculated column. But since this one would be static and not recalculate the zscore every time I slice my data in the table I am somewhat stuck and don't know how to solve this. 

 

Any help would be very much appreciated. Thanks very much!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please try something like the attached pbix file whether it suits your requirement.

Jihwan_Kim_0-1702731282385.png

 

 

 



Microsoft MVP



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.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please try something like the attached pbix file whether it suits your requirement.

Jihwan_Kim_0-1702731282385.png

 

 

 



Microsoft MVP



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.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Thank you very much for your great help. It seems to be exactly what I need. I am not sure that I fully understand how you sloved it. Would it be ok if you explain your solution in a few words? 

expected result measure: = 
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            SUMMARIZE (
                'values',
                'values'[name],
                'values'[industry],
                'values'[sector],
                'values'[value1]
            ),
            "@zscore", [zscore val1]
        ),
        [@zscore] >= MAX ( Bins_V2[Min] )
            && [@zscore] < MAX ( Bins_V2[Max] )
    )
)

 Thank you very much again. Gernot

Hi,

Thank you for your message.

I tried to create Bin_V2 table like below, and used Bin_V2[Range] column in the visualization.

Jihwan_Kim_0-1702790407662.png

 

Jihwan_Kim_1-1702790635349.png

 



Microsoft MVP



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.




LinkedInVisit my LinkedIn page




Outlook BookingSchedule a short Teams meeting to discuss your question



Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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