Forum Discussion

luanlopes's avatar
luanlopes
Advocate II
9 months ago
Solved

How to know dataset size with API?

Hey, 

I need to create a logic in my software but with my datasets, but i need to know the size of my dataset, how can i do that? 


12 Replies

  • Load the data into your model and save the file. Then look at the file size (.pbix) (compressed size).

  • You need to take the quality and compressibility of your data into account.  There is a big difference across semantic models, and a big difference between disk size and memory size.

     

    What are you ultimately trying to achieve?

    • luanlopes's avatar
      luanlopes
      Advocate II

      Hi lbendlin

      Thanks for the reply I’m actually trying to retrieve that same number (shown under Workspace settings → System Storage) through an API.

      • lbendlin's avatar
        lbendlin
        Super User

        Understood. But why? What are you doing with that number once you get it?

    • luanlopes's avatar
      luanlopes
      Advocate II

      Hey danextian, thanks for the answer, but I'm trying to see the same number I see when I open the Workspace settings -> System Storage (API).

    • luanlopes's avatar
      luanlopes
      Advocate II

      Yeah danextian, I know about it but I want to check this point using some API (PowerBI or something like that) or CLI...